Re: Stacks and Sub Stacks

2019-09-28 Thread J. Landman Gay via use-livecode
Is the handler in a script-only stack? Maybe the editor doesn't or can't scan those. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On September 27, 2019 10:31:22 PM Sannyasin Brahmanathaswami via use-livecode wrote: Thanks for answers

Re: Stacks and Sub Stacks

2019-09-28 Thread Paul Dupuis via use-livecode
On 9/27/2019 11:29 PM, Sannyasin Brahmanathaswami via use-livecode wrote: No one answers the other question, so I will ask it here, as it goes to Message Hierarchy "put gotSomeFruit() into tBanana" where " gotSomeFruit ()" is among the functions/handlers is found among "stackInUse". ie.

Re: Stacks and Sub Stacks

2019-09-27 Thread Sannyasin Brahmanathaswami via use-livecode
Thanks for answers of "how to get a list of all stacks?" put revLoadedStacks() put the mainstack stacksinuse all good! But, they return different resultsvery interesting... stackInUse does not include some stacks reported by "revLoaderStacks()" both lists have their use cases... but the

Re: Stacks and Sub Stacks

2019-09-25 Thread Bob Sneidar via use-livecode
I like using SubStacks because I only need to open one file to get everything related to a project. Some people don't like using them because there are certain things that happen that you wouldn't expect. For instance, any preOpenStack, openStack, suspendStack, resumeStack etc. messages generate

Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Should, of course, be: on mouseUp   answer "Sub" && random(99)   -- pass mouseUp end mouseUp I really, really do not like the use-list. Craig -Original Message- From: dunbarx--- via use-livecode To: use-livecode Cc: dunbarx Sent: Wed, Sep 25, 2019 3:45 pm Subject:

Re: Stacks and Sub Stacks

2019-09-25 Thread Peter Bogdanoff via use-livecode
Mark, you can easily use the send command for this. There is also the dispatch command. The call would go directly to the object, bypassing any hierarchy. Thus you can have the same-named handlers is other stacks without a conflict. Sometimes it is a good thing to have a same-named handler in va

Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Hi. Substacks are below (Hi, Jacque) the mainStack which own them in the message hierarchy. Try this: Make a new stack, name it "Main1". Make a sub stack of that stack, and name it "Sub1". Put this into the script of the main stack: on mouseUp   answer "Main" && random(99) end mouseUp Now put t

Re: Stacks and Sub Stacks

2019-09-25 Thread Mark Smith via use-livecode
Do you ever have to call a substack from a main stack? If you do, do you have to preface the handler with a substack reference or does LC know where to look? Can you have 2 handlers by the same name in different sub stacks? How about in the main stack and a substack (that would really get confus

Re: Stacks and Sub Stacks

2019-09-25 Thread Phil Davis via use-livecode
On 9/25/19 7:43 AM, Sannyasin Brahmanathaswami via use-livecode wrote: Related: if you have this in the message box. put the openstacks you only get the 1. presently open binary stacks 2. any script only stack that you explicitly have open in the IDE Some more options: put revLo

Re: Stacks and Sub Stacks

2019-09-25 Thread J. Landman Gay via use-livecode
There's "the stacksInUse" for those. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On September 25, 2019 9:45:22 AM Sannyasin Brahmanathaswami via use-livecode wrote: Related: if you have this in the message box. put the openstack

Re: Stacks and Sub Stacks

2019-09-25 Thread Sannyasin Brahmanathaswami via use-livecode
Related: if you have this in the message box. put the openstacks you only get the 1. presently open binary stacks 2. any script only stack that you explicitly have open in the IDE But, can you we a list of all stacks available to the message path "right now" We can query the stack file

Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Hi. You probably mean script-only stacks. Substacks are just stacks, but they live in the same file as the mainStack. It helps with organization, and when you save one, you save them all. You can only have one mainStack, but as many subStacks as you like. For me, I have projects that use substack