Livecode Wiki
Advertisement

A Message sent to the current card when something makes its stack no longer the active window. If there is a message handler by the same name in the message path, then it will be executed.

Message[]

Syntax:

suspendStack

The suspendStack message is sent whenever a stack window is no longer the active window, when the stack window is closed, when another stack is brought to the front, when other LiveCode windows are brought to the front, and when switching to another program.

Message handler[]

Examples:

on suspendStack            -- hide a palette that only applies to this window
  hide stack "Accessories"
end suspendStack

Use the suspendStack Message handler to perform some action when a stack window is made inactive.

The actual window deactivation process is not triggered by the suspendStack message, so trapping the message and not allowing it to pass does not prevent the stack window from becoming inactive.

See also: focusOut, closeStack, iconifyStack, suspend, resumeStack & stack.

Advertisement