Hi, So using real substacks being opened by go to from mainstack and then closing from substack returning to mainstack all working well, thanks for the previous suggestions.
Just found some odd behaviour :- The mainstack and substacks have items in PreOpenStack. The substack has for example, On preopenstack Set the foregroundcolor of fld “xyz” to red End preopenstack This works on the first pass of go to substack from mainstack. But if the substack is closed and go to substack from mainstack is used again the fld “xyz” is not found. To get round this I added the cd in the substack - fld “xyz” of cd “123” . Two questions :- 1. Is this the expected behaviour ? 2. Why does it work on the first pass without using - of cd “123” Regards Camm > On 29 May 2022, at 20:32, General 2018 <general.2...@outlook.com> wrote: > > Hi Jacquline, > > Think your question lead me to the issue. > > For some reason on the stack that did not work I added the substack by > opening the mainstack and substack and saving the substack into the mainstack > somehow. > > I started from new and added the substack by using the add stack file button > within standalone settings and it worked fine. > > > Regards > Camm > >> On 29 May 2022, at 17:27, J. Landman Gay via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> Just to clarify, are they real substacks or do you mean they are separate >> stacks that you include in the build? Also, double check that standalone >> settings isn't set up to move substacks into separate files. I think that >> option is in the general pane but I'm not at my computer to check. >> -- >> Jacqueline Landman Gay | jac...@hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >>>> On May 29, 2022 6:05:08 AM General 2018 via use-livecode >>>> <use-livecode@lists.runrev.com> wrote: >>> >>> Still no luck, no closestack handler in “main stack” , tried the other >>> suggestions with hide/show etc. But still “mainstack” quits on closing the >>> “substack xyz” >>> >>> Will keep looking…….. >>> >>> Regards >>> >>>>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode >>>>> <use-livecode@lists.runrev.com> wrote: >>>> >>>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>>>> Hi , >>>>> New to substacks - I have a “mainstack” used as a menu page for 2x >>>>> “substacks” >>>>> When “substacks” opened from “mainstack” they open fine using — go to >>>>> stack “xyz” >>>>> The problem is closing of the “substacks” using - close stack, go to >>>>> “mainstack” or close this stack it always closes (quit) everything. Need >>>>> “mainstack” to reappear/remain ? >>>>> Looked at docs and other posts. But stuck no doubt I have missed >>>>> something. >>>> >>>> Do you have a closeStack handler in the script of the mainstack? >>>> >>>> >>>> -- >>>> Mark Wieder >>>> ahsoftw...@gmail.com >>>> >>>> _______________________________________________ >>>> 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