Error getting tags :
error 404Error getting tags :
error 404 nameChanged | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
nameChanged
Basics
Expander triangle
Type
Message
Syntax
nameChanged oldName,newName
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to an object when its name is changed.
Examples

on nameChanged myOldName,myNewName -- replace name in a menu button
put lineOffset(myOldName,button "Window List") into namePosition
put myNewName into line namePosition of button "Window List"
end nameChanged

Additional Comments
Expander triangle

Handle the nameChanged message if you want to make updates when an object's name is changed. For example, if you have a popup menu with the names of stacks, the menu should be updated when a stack's name changes.

Parameters:

The oldName is the object's original name.

The newName is the object's new name.

Comments:

The actual change is not triggered by the nameChanged message, so trapping the message and not allowing it to pass does not prevent the name from being changed.

User Comments
Expander triangle