watch 01:25
Jurassic World: Dominion Dominates Fandom Wikis - The Loop
Do you like this video?
Play Sound
A Message sent to the current card when the stack closes. If there is a message handler by the same name in the message path, then it will be executed.
Message[]
Syntax:
closeStack
Message handler[]
Examples:
on closeStack -- automatically save changes save this stack pass closeStack end closeStack
Handle the closeStack message if you want to perform cleanup or do other tasks when the user closes a window.
A stack is closed when the user or a handler closes the stack window.
The actual closing is not triggered by the closeStack message, so trapping the message and not allowing it to pass does not prevent the stack from closing. To prevent a stack from closing, trap the closeStackRequest message.
See also: closeStackRequest, unIconifyStack, closeBackground, preOpenStack, shutdown, suspendStack, saveStackRequest, closeCard, stack, & closeBox.