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
Fredrik View Drop Down
Senior Member
Senior Member

Joined: 22 June 2005
Status: Offline
Points: 165
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
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
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.094 seconds.