Error getting tags :
error 404Error getting tags :
error 404 deleteButton | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
deleteButton
Basics
Expander triangle
Type
Message
Syntax
deleteButton
See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to a button just before it is removed from the stack.
Examples

on deleteButton -- prevent the deletion by immediately undoing it
beep
send "undo" to this card in 5 milliseconds
end deleteButton

Additional Comments
Expander triangle

Handle the deleteButton message if you want to perform cleanup before a button is removed from the stack.

Comments:

The actual deletion is not triggered by the deleteButton message, so trapping the message and not allowing it to pass does not prevent the button from being removed.

However, the undo command will restore a button after it is deleted by the user.

User Comments
Expander triangle
User thumbnail
Mark Schonewille
StarStarStarStarStar
Jan 15, 2010
In most cases, the undo command will not work after deleting a control in the IDE, but it might work in a standalone.