Canceling or clearing TIMER events [message #55758] |
Fri, 07 September 2007 07:34 |
M. Katz
Messages: 69 Registered: May 2005
|
Member |
|
|
I'm wondering if there's a good or accepted way to cancel
widget_control, TIMER events. I use TIMER events to perform tasks a
few seconds to a minute into the future.
Currently, I'm using TIMER to perform some kinds of automation, when a
series of events is repeated in a GUI without the user needing to be
involved. When the user clicks a 'stop' button, a stop_requested flag
is set. Then when the timer event arrives, no action is performed if
stop_requested is true. I would prefer to also just cancel the TIMER
events that are floating around out there.
The IDL Help explanation of CLEAR_EVENTS isn't clear enough to say
whether it applies in this case. I can envision a case where the user
closes the widget, and then the event arrives all dressed up with
nowhere (no valid widget IDs) to go.
Thanks,
M.
|
|
|