Menu

#606 OwlExt::TCalcEdit and TCalendarEdit always display the popup on the primary monitor

8
pending
1
2026-04-12
2025-04-26
No

The OWLExt TCalcEdit and TCalEdit controls display their popups on the primary monitor, even if the controls are displayed in a secondary monitor.

Same most likely happens with TPickEditList as well.

Discussion

  • Ognyan Chernokozhev

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
     The OWLExt TCalcEdit and TCalEdit controls display their popups on the primary monitor, even if the controls are displayed in a secondary monitor.
    +
    +Same most likely happens with TPickEditList as well.
    
    • assigned_to: Ognyan Chernokozhev
    • Group: unspecified --> 8
     
  • Ognyan Chernokozhev

    Quick fix for all three controls in [r7749].

    Note - since all three controls use the same code to get the current monitor screen rectangle, that code should be moved in a shared place, for example in owlext.cpp, which already contains a number of similar utility functions.

     
    👍
    1

    Related

    Commit: [r7749]

  • Vidar Hasfjord

    Vidar Hasfjord - 2025-04-27

    @jogybl wrote:

    code to get the current monitor screen rectangle, that code should be moved in a shared place

    See new TSystem::GetMonitorWorkArea that I added for the implementation of ConstrainPersistentExtent, as part of the new window extent persistence [feature-requests:#258].

    For convenience, you can add this overload, if you want:

    auto GetMonitorWorkArea(const TWindow& w) -> TRect
    { return GetMonitorWorkArea(w.GetWindowRect()); }
    
     
    👍
    1

    Related

    Feature Requests: #258

  • Vidar Hasfjord

    Vidar Hasfjord - 2025-05-24
    • summary: OWLExt TCalcEdit and TCalEdit always display the popup on the primary monitor --> OwlExt::TCalcEdit and TCalendarEdit always display the popup on the primary monitor
    • labels: none --> GUI, OWLExt
     

    Last edit: Vidar Hasfjord 2025-05-24
  • Ognyan Chernokozhev

    • status: open --> pending
     

Log in to post a comment.

MongoDB Logo MongoDB