reloadStack | ||||||||||
Type | message | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Associations | stack | |||||||||
Summary | Sent to a main stack when the user tries to open a main stack with the same name as a previously-opened stack. | |||||||||
Introduced | 1.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Related | Property: destroyStack, name Object: stack Function: mainStacks Glossary: property, pass, message, main stack, trap | |||||||||
Description | Handle the reloadStack message when you want to prevent a stack from being reopened, or moderate conflicts between the names of main stacks, or prevent two main stacks with the same name from being open at one time. The opening of the stack is triggered by the reloadStack message. This means that trapping the reloadStack message and not passing it prevents the second stack from being opened. If a main stack's destroyStack property is set to false, the stack remains in memory--and can cause a reloadStack message to be sent--even after its window is closed. | |||||||||
Tags | objects |