You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary>Sent to a <keywordtag="button">button</keyword> just before it is removed from the <objecttag="stack">stack</object>.</summary>
<examples>
<example>on deleteButton <code><i>-- prevent the deletion by immediately undoing it</i></code></p><p> beep</p><p> send "undo" to this card in 5 milliseconds</p><p>end deleteButton</example>
</examples>
<description>
<p>Handle the <b>deleteButton</b> message if you want to perform cleanup before a <keywordtag="button">button</keyword> is removed from the <objecttag="stack">stack</object>.</p><p/><p><b>Comments:</b></p><p>The actual deletion is not triggered by the <b>deleteButton</b> <keywordtag="message box">message</keyword>, so <glossarytag="trap">trapping</glossary> the <keywordtag="message box">message</keyword> and not allowing it to <control_sttag="pass">pass</control_st> does not prevent the <keywordtag="button">button</keyword> from being removed.</p><p/><p>However, the <b>undo</b> <glossarytag="command">command</glossary> will restore a <keywordtag="button">button</keyword> after it is deleted by the user.</p>