Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 04 JUL 2002 08:22:25AM Richard Channer wrote:

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


At 05 JUL 2002 03:27PM Donald Bakke wrote:

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

SRP Computer Solutions, Inc.


At 08 JUL 2002 09:32AM Richard Channer wrote:

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


At 16 JUL 2002 06:16AM Marc Radley wrote:

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.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/fb45ae089c9cf96b85256bec0043f8c7.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1