12-10-2015 09:40 AM
Is there a way I can detect when a user closes a menu or menu popup? I would like to shut down other timers in a single-threaded app when the user opens a menu. But then I need to know when to restart all the timers.
12-11-2015 03:31 PM
Have you considered creating a variable and updating it in the event callback functions for these buttons, and then using this variable to reset the timers?
12-14-2015 03:41 PM
Thanks for the thoughts. But these are for menus, not buttons. But I think I see your thought process. The trouble is, a user has the option of aborting a menu without actually doing a COMMIT of any one menu item. There doesn't seem to be an event types that account for when a menu is closed.
12-14-2015 04:15 PM
If you happen to use Runpopupmenu, the return value of the function is 0 if no menu item was selected
12-15-2015 08:43 AM
Hmm, that's tempting. I do use Runpopupmenu, but not exclusively. So unfortunately, it would be only a half-solution.
What I'm really trying to do here is to speed up my GUI during operation. I really just need to fully commit one of these days and embrace multi-threading in my application. 🙂
12-15-2015 09:20 AM
For the long term you might want to support and/or modify the suggestion of having a suitable mouse cursor event