basic question about "go to stack" and scripts in that stack

william humphrey shoreagent at gmail.com
Mon Sep 1 14:47:42 EDT 2008


Thank you. That is the behavior I expected and was not getting. So my next
step is to try to figure out if this is a bug of the beta version although I
don't think so ...
I will make a simpler version of my two stacks and test it. I really wish
that the day would have more hours in it...

On Mon, Sep 1, 2008 at 1:50 PM, J. Landman Gay <jacque at hyperactivesw.com>wrote:

> william humphrey wrote:
>
>> This is a simple question.
>> If you have two stacks (one is a substack of the other and both are side
>> by
>> side on my monitor) and you click on one stack manually with the mouse
>> then
>> the scripts in that stack all work perfectly but if you "go to that stack"
>> with a script from the other stack the scripts do not work  even though
>> visually it appears that the stack is active in front of you and selected.
>>
>
> Generally you don't have to do anything, the stack you go to becomes the
> defaultstack. But in some cases that doesn't happen, and you need to set it
> yourself: set the defaultstack to <firstStack>.
>
> Another option is to simply put the function into the main stack script.
> All substacks can use them from there.
>
> --



More information about the use-livecode mailing list