Menu

#2266 No context menu on left monitor

Bug
closed-fixed
nobody
5
2021-07-26
2021-06-29
No

3 x 1920x1080 monitor setup running Windows 7 SP1 with Sc510.exe.

Left monitor is negative on the horizontal axis. The context menu will not display on either pane of SciTE on the left monitor. Centre and right monitor does display the content menu.

If SciTE is positioned half on left monitor and half on centre monitor, with cursor at -1 horizontal axis, no context menu, with curser at +1 horizontal axis, context menu displays.

The context menu is not created on the left monitor as WinLister does not list it. WinLister does detect the context menu on the centre monitor and the right monitor.

Sc503.exe does not have this issue.

In PlatWin.cxx:

Added printf("rcWork.left=%ld < rcWork.right=%ld\n", rcWork.left, rcWork.right); at Window::GetMonitorRect

  • Left: rcWork.left=-1920 < rcWork.right=0
  • Centre: rcWork.left=0 < rcWork.right=1920
  • Right: rcWork.left=1920 < rcWork.right=3840

which at a guess, seems OK. I got this hint from another topic so I am unsure where to look further to help debug. Tried a printf with just a literal string at ScintillaBase::ContextMenu, though got no output, so it is not being called by the contextmenu event it seems when the contextmenu displays.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2021-06-29
    • labels: scite --> scite, win32
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2021-06-29

    Fixed with [e13b0b].

     

    Related

    Commit: [e13b0b]

  • Michael Heath

    Michael Heath - 2021-06-29

    Applied patch, compiled and SciTE now displays context menu on the left monitor. Thankyou Neil.

     
  • Neil Hodgson

    Neil Hodgson - 2021-07-26
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB