Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - BUG: context menu position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: context menu position

 Post Reply Post Reply
Author
Message
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 222
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Topic: BUG: context menu position
    Posted: 28 January 2019 at 8:04am
Hi CodeJock

Could you change line 4861 in XTPSyntaxEdiCtrl.cpp

if (point.x < 0 || point.y < 0) //keyboard ContextMenu button pressed
To:
if (point.x == -1 && point.y == -1) // keyboard ContextMenu button pressed

Otherwise the context menu will pop up on the center of the screen if you have moved your application to a screen 'left' of your primary where the screen coordinates will be negative.

The second 'if (point.x == -1 && point.y == -1)) should (probably) be changed to "if (!rcWnd.PtInRect(point))".
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 222
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Posted: 23 November 2020 at 5:24am
I just checked the status of this bug in 19.3 - and it is still there. 

Hey! It is just changing a '<' to  '=='

!!!

https://docs.microsoft.com/en-us/windows/win32/menurc/wm-contextmenu
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 222
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2022 at 3:10am
... not fixed in v. 22
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
Back to Top
bschaer View Drop Down
Groupie
Groupie


Joined: 27 June 2006
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote bschaer Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2023 at 2:54pm
Support is itself on life support.  Sad.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.