Error getting tags :
error 404Error getting tags :
error 404 closeBackground | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
closeBackground
Basics
Expander triangle
Type
Message
Syntax
closeBackground backgroundID
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to the current card when the user is leaving a card that has a group to go to one that doesn't have the group.
Examples

on closeBackground theClosedGroupID
-- save when exiting a particular background:
if theClosedGroupID is 234 then saveNotesToFile
pass closeBackground
end closeBackground

Additional Comments
Expander triangle

Handle the closeBackground message if you want to perform cleanup or do other tasks when the user leaves a background.

Parameters:

The backgroundID is the ID number of the background being exited.

Comments:

A background is closed when the user either goes to a card that doesn't have the group on it, or closes the stack.

The closeBackground message is sent only if the group's backgroundBehavior property is set to true. If the group's backgroundBehavior is false, no closeBackground message is sent, even if the group is placed on multiple cards.

A separate closeBackground message is sent for each background that is being closed.

User Comments
Expander triangle