When clicking on a palette item, how does Rev know what stackyouwere in?

Doug Lerner doug at webcrossing.com
Sun Jan 11 22:37:06 EST 2004


On 1/12/04 12:25 PM, "Ken Ray" <kray at sonsothunder.com> wrote:

>> Is there an easy way of detecting which of the windows I was
>> in when I went to click the palette?
> 
> Well, if you ask for the topStack, you'll get the top-most, non-palette
> stack (which *should* be the one you were last working with.
>

I ended up doing this with a mouseLeave handler in the stack I was in. That
seems most reliable, in case the other stack is not a palette.

doug



More information about the use-livecode mailing list