Error getting tags :
error 404Error getting tags :
error 404 newImage | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
newImage
Basics
Expander triangle
Type
Message
Syntax
newImage
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to a new image right after it's created.
Examples

on newImage -- assign a file to a referenced image
if the text of the target is empty then -- no painted pixels
answer file "Please choose an image to display:"
set the filename of the target to it
end if
end newImage

Additional Comments
Expander triangle

Handle the newImage message if you want to create additional objects, switch tools, or do other tasks when a new image is created.

Comments:

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.

User Comments
Expander triangle