Print Page | Close Window

BUG: context menu position

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=23799
Printed Date: 24 September 2023 at 8:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: context menu position
Posted By: Fredrik
Subject: BUG: context menu position
Date 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



Replies:
Posted By: Fredrik
Date 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


Posted By: Fredrik
Date Posted: 08 November 2022 at 3:10am
... not fixed in v. 22

-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0


Posted By: bschaer
Date Posted: 25 January 2023 at 2:54pm
Support is itself on life support.  Sad.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net