PDA

View Full Version : Detecting whether a context menu is currently active



Andrew Top
14th April 2010, 17:23
Hi,

I'm using a context menu for a widget in my application, but this particular widget also has functionality associated with it that is activated when the left mouse button is pressed. When the user has right-clicked to open a context menu, sometimes they may wish to cancel it by left-clicking elsewhere in the widget, however this action will also invoke the left mouse button down functionality.

In order to prevent the left mouse button pressed functionality from activating while the context menu is active, is there any way to detect whether a context menu is currently active for a specific Widget? I cannot find any events relating to the dismissal of a context menu.

Thanks very much!

Andrew