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 the <glossary tag="current card">current card</glossary> when the user tries to close a <object tag="stack">stack</object>.</summary>
<examples>
<example>on closeStackRequest </p><p> answer "Are you sure?" with "No" or "Yes"</p><p> if it is "Yes" then pass closeStackRequest </p><p>end closeStackRequest</example>
</examples>
<description>
<p>Handle the <b>closeStackRequest</b> <keyword tag="message box">message</keyword> if you want to prevent a <object tag="stack">stack</object> from being closed.</p><p/><p><b>Comments:</b></p><p>If the <b>closeStackRequest</b> <glossary tag="handler">handler</glossary> does not <control_st tag="pass">pass</control_st> the <keyword tag="message box">message</keyword> or send it to a further <glossary tag="object">object</glossary> in the <glossary tag="message path">message path</glossary>, the <object tag="stack">stack</object> does not close. <glossary tag="pass">Passing</glossary> the <keyword tag="message box">message</keyword> allows the <object tag="stack">stack</object> to close. </p><p/><p>The <b>closeStackRequest</b> message is only sent if the request to close a stack is initiated by the user (eg by clicking file -> close in the LiveCode menu). If the request is initiated from a script (eg "close this stack") then the <b>closeStackRequest</b> message is <b> not sent</b>.</p>