Re: Substacks

2022-06-05 Thread Mark Wieder via use-livecode
On 6/5/22 05:51, General 2018 via use-livecode wrote: 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 hav

Re: Substacks

2022-06-05 Thread General 2018 via use-livecode
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,

Re: Substacks

2022-05-29 Thread General 2018 via use-livecode
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 wit

Re: Substacks

2022-05-29 Thread J. Landman Gay via use-livecode
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. -- Jacq

Re: Substacks

2022-05-29 Thread Jim At Consensus via use-livecode
At the risk of repeating someone else’s suggestion. I address this by have an on closeStsck handler in the main stack. I’m in my phone so don’t have access to code but it’s along the lines of: On closeStack If the short name of me is “” then closeStack End closeStack Works rely as bay for

Re: Substacks

2022-05-29 Thread General 2018 via use-livecode
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 > wrote: > > On 5/28/22 07:15, General 201

Re: Substacks

2022-05-28 Thread Mark Wieder via use-livecode
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 “m

Re: Substacks

2022-05-28 Thread Bob Sneidar via use-livecode
Hide the mainstack, when opening the substack, then show the mainstack in the substack’s closestack handler. Sent from my iPhone > On May 28, 2022, at 12:41, General 2018 via use-livecode > wrote: > > Thanks for the tip but still no good. > > So button in “xyz” substack with close stack “x

Re: Substacks

2022-05-28 Thread J. Landman Gay via use-livecode
In an app, the mainstack is the home stack. If it's closed and no other stack is open then the app will quit. But if you open a substack, the app can't quit because the substack is part of the stackfile but the mainstack is still marked as closed. So the trick is not to close the mainstack, just

Re: Substacks

2022-05-28 Thread General 2018 via use-livecode
Thanks for the tip but still no good. So button in “xyz” substack with close stack “xyz” still closes all ? Regards Camm > On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode > wrote: > > Hi, > > did you try close stack "xyz" ? Thias works for me, in the IDE at least, > both if c

Re: Substacks

2022-05-28 Thread Thomas von Fintel via use-livecode
Hi, did you try  close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. Livecode 9.6.7 and Windows 10 Hope this helps Thomas Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: Hi , Ne

Re: SubStacks and message path

2011-06-06 Thread Keith Clarke
...thanks Robert but 'do login()' was working just fine until I moved it from a login 'card' in the mainstack into into a login substack. And it does again now, since I have taken Jaque's advice to use groups with switched visibility (and background images that simulate popping a substack with

Re: SubStacks and message path

2011-06-05 Thread Robert Brenstein
On 04.06.2011 at 12:58 Uhr +0100 Keith Clarke apparently wrote: Hi Jim, Thanks for the response, clarification and tips. This app has one MainStack (so far!) and it's script contains a handler on preOpenStack, to start using stack "SOAP". So, thanks for confirming that this should place the SO

Re: SubStacks and message path

2011-06-04 Thread Keith Clarke
Hi Jim, Thanks for the response, clarification and tips. This app has one MainStack (so far!) and it's script contains a handler on preOpenStack, to start using stack "SOAP". So, thanks for confirming that this should place the SOAP substack into the message path library 'slot' for the MainSta

Re: SubStacks and message path

2011-06-04 Thread Jim Ault
On 4 Jun 2011, at 09:07, Keith Clarke wrote: Hi folks, I'm using a substack 'Credentials' as a dialogue box to capture login credentials for a web service (tUsername, tPassword). A second 'SOAP' substack acts as a library managing the various POST messages for the web service, including a

Re: SubStacks and message path

2011-06-04 Thread Keith Clarke
Hi folks, Problem solved - I dropped the Login substack in favour of the simpler solution of a card in the MainStack. Now the SOAP substack is in its message path - and I can put off learning send and dispatch for another day! Best, Keith.. On 4 Jun 2011, at 09:07, Keith Clarke wrote: > Hi fol