[futurebasic] [FB] Anticipating an event

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1999 : Group Archive : Group : All Groups

From: Charlie Dickman <charlied@...>
Date: Thu, 23 Dec 1999 14:59:07 -0500
Friends,

Is there a way to examine the event queue for the presence of a 
particular event before actually processing it via HANDLEEVENTS?

I have an application that prefers to run not as the frontmost window 
until such time as the user either expressly brings it forward or 
drops a file on its icon to activate it. Sometimes, when files are 
dropped on the icon the app flashes to the front but then my code 
immediately returns it to the background because it has not yet 
detected the apple event that tells it of the file that was dropped 
but (probably) has seen a NULL event and thought that there is 
nothing to do. This action causes the user to have to re-drop the 
file - not such a nice interface. If there is some way to scan the 
pending events then I can prevent retiring to the background when 
there really is work to do.

Any input will be greatly appreciated...

Charlie Dickman
charlied@...