I read in the dictionary that closeStackRequest is sent to the current card 
when the user initiates a close stack. There is a note which says that closing 
the stack from a script will not trigger the message, and because of this, 
using command-w or selecting File->Close will not trigger the message since 
both these methods use a script to function. Ok, I can live with that.

So then the only time a closeStackRequest gets sent is if the user clicks the 
Close control in the window title bar. Right? Wrong, apparently. I have this in 
the card script:

on closeStackRequest
   breakpoint
   save this stack
   pass closeStackRequest
end closeStackRequest

When closing the window using the control in the window title bar, I do not 
even get the debugger. I just get the popup asking if I am sure, allowing me 
Don’t Save, Cancel or Save. So when *exactly* is the closeStackRequst sent? 
Never under any conditions? Seems so at this point, unless I am greatly 
mistaken.

Bob
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to