When clicking on a palette item, how does Rev know what stack you were in?

Sarah Reichelt sarahr at genesearch.com.au
Sun Jan 11 17:11:44 EST 2004


Check the docs for the topStack. It tells you the front most window 
with the lowest mode, where normal stack windows have a mode of 1. 
(Read the docs entry for mode to get further details.)

Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/

On 10 Jan 2004, at 6:03 pm, Doug Lerner wrote:

> If there is not a built-in way of doing this I can probably rig 
> something up
> with global variables, looking at the current open stacks manually, or
> something like that, but I thought I would ask first...
>
>
> Suppose there are several windows open and I click in a palette window
> somewhere choosing a tool or a chunk.
>
> Is there an easy way of detecting which of the windows I was in when I 
> went
> to click the palette?
>
> Should I just use the mouseLeave handler to store a reference to where 
> I was
> in a global variable or something like that?
>
> Thanks,
>
> doug



More information about the use-livecode mailing list