Strange closeStack behavior

Bob Sneidar bobsneidar at iotecdigital.com
Mon Oct 4 12:49:20 EDT 2021


Okay, so I went through every closeStack and closeStackRequest handler in ALL my stacks and libraries and commented out the handlers. The problem persists. The stack in question is the only substack of a couple without a custom menu, so I am wondering if the last stack with a custom menu becomes the topStack?? 

Bob S


> On Oct 4, 2021, at 08:30 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Ohhh good suggestion I'll do that. 
> 
> Bob S
> 
> 
>> On Oct 4, 2021, at 06:30 , Craig Newman via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi.
>> 
>> Maybe just before the closeStackRequest line, ask for the topStack. Is it possible  the mainStack is somehow in front?
>> 
>> Craig
>> 
>>> On Oct 1, 2021, at 6:22 PM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> Hi all. 
>>> 
>>> Very strange. I have a substance belonging to a mainstack that has LOTS of other sub stacks. Only on this ONE substack, when I click the close button (the red dot in the upper left of a MacOS window) it asks me if I want to ave the stack, EVEN THOUGH I have a closeStackRequest in the stack script that saves the stack before passing closeStackRequest. 
>>> 
>>> If I don't save, or if I do save, the MAINSTACK closes, NOT just the substack! If I cancel nothing happens. 
>>> 
>>> What the.....??? 
>>> _______________________________________________
>>> 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
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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