Reposted - No offers?
Hi All,
I have a context menu on an edit table which pops up on right click, and is removed on left click (on a selection, or on a click anywhere else on the desktop).
However, it seems I am unable to trap right click again while the menu is up, and have to left click first before I can open a new context menu elsewhere…
Anyone know how I can trap a right-click elsewhere on a control (seems to have the same behaviour regardless of control type) while a context menu is up so that I may popup a replacement context menu at the new pointer location?
Regards,
Richard
Richard,
I'm not at a place where I can view source but I believe this problem occurs when you trap the RightMouseClickDown rather than RightMouseClickUp.
dbakke@srpcs.com
Thanks for your help Don but I cannot get that to work. My control is an edit table so I have to qualify a 528 and check wparam on WINMSG to see what happened.
The only two wparam codes that seem to work are 513 (left button down) and 516 (right button down) - nothing else gets trapped…
or does it…?
Richard
Hi Richard
I am trying to create a popup context menu also. I have used context menu winMsg 0x007B instead of right click.
Would you be prepared to share your code for menu popup.
Have you considered creating a hidden window as the owner of the popup menu which can then close via inactivated event.