So my only solution I can come up with to keep this from happening is to disable the Close Window control, then add a button that saves the stack then closes it. It's ugly, but what else can I do. For my part, if a stack is a substack of a mainstack and I close it, the Save dialog should not present itself. I say that because if I manually save the substack, the splash dialog seems to indicate it is saving the mainstack and under it the list of all the substacks.
Bob S > On Oct 4, 2021, at 09:49 , Bob Sneidar via use-livecode > <use-livecode@lists.runrev.com> wrote: > > 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@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@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@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@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@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode