In standalone, closing a modal closes everything

Mark Smith mark at maseurope.net
Wed Jan 31 07:27:47 EST 2007


Mark, the closeStack message is sent by the engine when a stack is  
closed (a sort of notification that the user has closed a stack), and  
like other messages, will pass up the message path unless trapped.

so if you wanted to use it to make sure the standalone actually quits  
when the mainstack is closed, rather than any stack, you could do this:

in the mainstack script:
on closeStack
   if the environment is not "development" AND the target is me then  
quit
end close stack

See also : shutdown, shutdownRequest, closeStackRequest

best,

Mark

On 31 Jan 2007, at 12:16, Mark Powell wrote:

>  on closeStack
>     if the environment is not "development" then quit
>   end closeStack




More information about the use-livecode mailing list