Re: TIP: A Collapsable Tool Palette

2011-11-09 Thread Richmond

On 11/09/2011 08:21 PM, Michael Kristensen wrote:

Yes Mark

When you quit Rev the Palette will ask you if you want to save.

If yes it will stick for next time.


If you type save stack "revTools" into the messageBox the thing will save.


Michael




Hi Michael,

Do these script changes stick between sessions?

--
Best regards,

Mark Schonewille


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: TIP: A Collapsable Tool Palette

2011-11-09 Thread Michael Kristensen
Yes Mark

When you quit Rev the Palette will ask you if you want to save.

If yes it will stick for next time.

Michael



> 
> Hi Michael,
> 
> Do these script changes stick between sessions?
> 
> --
> Best regards,
> 
> Mark Schonewille


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: TIP: A Collapsable Tool Palette

2011-11-09 Thread Mark Schonewille
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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


TIP: A Collapsable Tool Palette

2011-11-09 Thread Michael Kristensen
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
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode