comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Clearing widget events
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Clearing widget events [message #35508] Wed, 18 June 2003 06:59
Ian Dean is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Coordinates from SLIDE_IMAGE
Next Topic: Spherical gridding

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:05:52 PDT 2025

Total time taken to generate the page: 1.36142 seconds