preOpenCard | |
Type | message |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Associations | card |
Summary | |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: card Message: openCard, preOpenBackground, closeCard, preOpenStack Object: card Glossary: object, handler, trap, message, execute Control Structure: pass |
Description | Handle the preOpenCard message to update a card's appearance before the card appears on screen. The preOpenCard message is sent before the openCard message. Unlike openCard, preOpenCard handlers are executed before the card appears. Because of this, the preOpenCard handler is a good place to put code that adjusts the size, position, and appearance of objects; the changes are made before the card appears. The actual navigation is not triggered by the preOpenCard message, so trapping the message and not allowing it to pass does not prevent the card from opening. |
Tags | navigation |