newCard | |
Type | message |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Associations | card |
Summary | Sent to a new card right after it's created. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: card, templateCard Property: script Message: newBackground Command: create card, paste, copy, clone Glossary: object, trap, message, tool, message path Control Structure: pass |
Description | Handle the newCard message if you want to create additional objects, switch tools, or do other tasks when a new card is created. Normally, the newCard message is handled at a higher level of the message path, since the newly-created card does not yet have a script unless the templateCard contains one. The actual creation is not triggered by the newCard message, so trapping the message and not allowing it to pass does not prevent the card from being created. |
Tags | objects |