TIP: A Collapsable Tool Palette
Mark Schonewille
m.schonewille at economy-x-talk.com
Wed Nov 9 06:22:10 EST 2011
Hi Michael,
Do these script changes stick between sessions?
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Become our partner in sales http://qery.us/16r Start selling Color Converter today. 20% commission!
On 9 nov 2011, at 12:15, Michael Kristensen wrote:
> Hi there
>
> If you have finished adding objects to your stack it can be nice to have a smaller Tool Palette with only the RUN - EDIT button visible.
>
> You can have that in this way:
>
> Go to the preferences of Revolution/Livecode and turn this on:
>
> General: Command-Option or Control-Alt edits script.
>
> and
>
> General: In Revolution UI windows.
>
>
> Now hold Command-Option or Control-Alt down over the Tool Palette card.
>
> The script of the Tool Palette card appear.
>
> It has no mouseUp handler, so you can add this:
>
> on mouseUp
> if the mouseV < 5 then
> if the height of this stack is 459 then
> set the height of this stack to 33
> else
> set the height of this stack to 459
> end if
> end if
> end mouseUp
>
> Now if you click just under the window bar the window will toggle between full and collapsed.
>
>
> NOTE: The height of the toolpalette may vary according to if the draw/paint tool is toggled on. Go check it before. In my case they are on.
>
> In any case the ToolPalette will spring to its full when you choose it from the menu.
>
> Michael
More information about the use-livecode
mailing list