Message Sent when Closing Stack

Bruce Merritt bruce at prestodigital.net
Thu Jun 10 19:43:15 EDT 2021


When the user force-quits you app, it when power fails you’re SOL

Sent from my iPhone

> On Jun 10, 2021, at 5:35 PM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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. 
> 
> Bob S
> 
> 
>> 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
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list