about creating rev palettes...

Chipp Walters chipp at chipp.com
Thu Mar 25 21:33:40 EST 2004


Hi Andre,

Use the topstack() function in your palette button.

But, first make sure your palette stack is a palette or else it will 
return it's own name.

create stack "fred"
create btn "click me"
set the script of btn "click me" to:

on mouseUp
    put the topStack
end mouseUp

palette stack "fred"

Now, click on the button and it will put the name of whatever the 
topmost stack is in the msg.

-Chipp


Andre Garzia wrote:

> Hi Folks,
> 
> I am thinking about creating a palette to help people using revHTTPd to 
> make webapps, this palette would take care of placing the needed custom 
> props and placeholder functions. My problem is, how the hell I find what 
> stack the user clicked? mousestack will not be able to do the job I 
> think, for when the user click the palette it will report the palette... 
> I know this road has been traveled before but I don't know how... :D
> 
> Cheers
> Andre
> 
> 



More information about the use-livecode mailing list