Stopping Handlers

Robert Brenstein rjb at robelko.com
Fri Apr 16 08:49:41 EDT 2010


On 14.04.2010 at 12:08 Uhr -0500 J. Landman Gay apparently wrote:
>Andrew Kluthe wrote:
>>I have a moveStack handler that triggers sometimes accidentally before all of
>>my windows open and causes it to error out and not finish opening what is
>>needed for the application.
>>
>>Can I use lock messages in my preOpenStack to keep the moveStack from being
>>handled, or am I misunderstanding lock messages?
>
>You could. Or you could put a check at the top of the handler that 
>looks to see if the last window exists yet:
>
>  if there is no window "lastWindowToOpen" then pass movestack
>
>--
>Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>HyperActive Software           |     http://www.hyperactivesw.com


or you could set a global gLaunching to true in preopenstack and to 
false when all init processes ran, and exit instantly movestack or 
any other handler while gLaunching is true.

Robert



More information about the use-livecode mailing list