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