|
Hi all, I have an app with a right-click popup menu. I want to know when the popup is on screen, and not take certain actions as a result (which are occurring in a timer). I know when I’m first displaying the popup, but I can’t really set a Boolean switch at this point, as there are too many ways the popup can be closed (necessitating the switching off of the Boolean) eg. via escape, user choosing an option on the popup, user changing to another app., etc.
There are no OnDeactivate type events for a TPopupMenu and I can’t find any properties of this object which will let me know if it’s currently being displayed on screen. I’ve tried out a few Windows messages like WM_GetFocus or WM_LostFocus, in order to know that the popup has gained focus or the main form lost focus to the popup, but can’t get anything to fire here either.
Any ideas / suggestions most welcome.
Cheers, Dave |
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
