Message Sent when Closing Stack
bobsneidar at iotecdigital.com
Thu Jun 10 19:34:11 EDT 2021
Yes it DOES work, using closeStackRequest. Not sure what I was seeing before, but closeStackRequest DID trigger.
That is great in the Development environment, but it does not work in a standalone. I think what we determined in prior posts is to disable the red close dot/square and have some other means for quitting the app.
> On Jun 10, 2021, at 14:54 , J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> On 6/10/21 11:59 AM, Bob Sneidar via use-livecode wrote:
>> Hi all.
>> We have gone around about this before, but I still cannot get this to work. I need to know if there is a message sent when a user clicks the close button in a window (on a Mac it's a little red dot in the upper left, on Windows a red square with an X).
>> I tried before closeStack, closeStackRequest etc, and these are not getting triggered when I close the stack this way.
> You want closeStackRequest for that. Note that if you don't pass the message the stack won't close.
> Do you mean if you set a breakpoint it won't trigger at all?
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode