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

on newButton -- put new buttons at a random location
set the location of the target to \
random(the width of this stack - the width of the target div 2), \
random(the height of this stack - the height of the target div 2)
nnd newButton

Additional Comments
Expander triangle

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

Comments:

Normally, the newButton message is handled at a higher level of the message path, since the newly created button does not yet have a script unless the templateButton contains one.

The actual creation is not triggered by the newButton message, so trapping the message and not allowing it to pass does not prevent the button from being created.

User Comments
Expander triangle