Event Flush?

BlitzMax Forums/BlitzMax Programming/Event Flush?

Tachyon(Posted 2006) [#1]
If I have a GUI window open, then I open a Notify or Confirm dialog, the window beneath it seems to cache events (for example, the movement of the mouse), so as soon as I close that dialog the events for that first window gets played out quickly. Make any sense?

Basically, is there a way to flush events from a Gadget's event queue?


WendellM(Posted 2006) [#2]
Interesting - and useful - question. In the absence of an actual command, perhaps this will do:

Repeat Until Not PollEvent()
since PollEvent() removes events from the queue and returns Null if there aren't any left. It seems to do the job.


Tachyon(Posted 2006) [#3]
Will give this a try. Thanks!


Beaker(Posted 2006) [#4]
Thats what I use.


Mark Tiffany(Posted 2006) [#5]
Hmmm, I was convinced that there was a FlushEvents...but it doesn't. It ought to though...