Event Flush?
BlitzMax Forums/BlitzMax Programming/Event Flush?
| ||
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? |
| ||
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. |
| ||
Will give this a try. Thanks! |
| ||
Thats what I use. |
| ||
Hmmm, I was convinced that there was a FlushEvents...but it doesn't. It ought to though... |