|
|
FB II COMPILERKeep control over the mouse clicksThe eyedropper routine is in a loop, so when I click on something outside the (eyedropper) window, all seems OK. When I exit the loop, the clicks take effect and my window disappears. Is there a way to clear them from memory? Warren Sure - call FlushEvents. That clears out the event queue, including all of your clicks. Mars Be careful though. Because if there are events in queue that happened _before_ your loop executed, and you flush them, they will not be processed. For instance, if an update event was waiting for the next null event to be processed, and you called FlushEvents, the update event would be flushed along with your mousedown events, and would not be processed by your app. David Blache
|