Clearing widget events [message #35508] |
Wed, 18 June 2003 06:59 |
Ian Dean
Messages: 26 Registered: January 2000
|
Junior Member |
|
|
Hi All,
Sorry, this is a repeat of an item I sent to the wrong subject before - my
apologies
Is it possible to clear any pending widget events without causing an
existing event handler to be called?
I have some software that establishes an event handler using the
EVENT_PRO flag on a top-level base (I know I should use XMANAGER - but this
is not suitable in this case).
This works well, except that one function is time-consuming and users
tend to hit the button (or other buttons) a number of times while waiting.
What I would like to do is to clear the backlog of these events when the
desired button action is complete.
I have tried using WIDGET_EVENT with /NO_WAIT until no event is
returned, but using this calls the current event handler, which I don't want
at this point. I have also tried setting the EVENT_PRO to a null string
before handling the desired function and then resetting it back afterwards.
Neither of these methods are satisfactory and I was wondering if there
is a better way.
In anticipation,
Ian
|
|
|