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 <glossarytag="current card">current card</glossary> when the user tries to close a <objecttag="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> <keywordtag="message box">message</keyword> if you want to prevent a <objecttag="stack">stack</object> from being closed.</p><p/><p><b>Comments:</b></p><p>If the <b>closeStackRequest</b> <glossarytag="handler">handler</glossary> does not <control_sttag="pass">pass</control_st> the <keywordtag="message box">message</keyword> or send it to a further <glossarytag="object">object</glossary> in the <glossarytag="message path">message path</glossary>, the <objecttag="stack">stack</object> does not close. <glossarytag="pass">Passing</glossary> the <keywordtag="message box">message</keyword> allows the <objecttag="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>