Removing the Tools palette

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Removing the Tools palette

Post by exheusden » Sun May 16, 2010 11:52 pm

I have everything working in a fairly large stack, except that whenever I open the stack, it starts up with the Pointer tool selected and witht he Tools palette visible. I've now found the "set the tool to browser" command to select the correct tool, but how do I get rid of the pesky Tools palette (in a script, I mean, not by closing it manually)? The only thing I can come up with is "set the hidePalettes to true" but it doesn't work!

Regulae
Posts: 136
Joined: Tue Oct 20, 2009 6:05 am

Re: Removing the Tools palette

Post by Regulae » Mon May 17, 2010 2:24 am

Hi there,

Code: Select all

hide stack "revtools"
... should do the trick.
You could use:

Code: Select all

on preOpenStack
   choose browse tool
   hide stack "revTools"
end preOpenStack
... in your stack script. I found the name of the tools palette by under "View" on the rev menubar, ticking "Revolution UI Elements In Lists", then under "Tools" opening the "Application Browser", scrolling down to find the name.
Regards,

Michael

exheusden
Posts: 170
Joined: Fri Oct 09, 2009 5:03 pm
Contact:

Re: Removing the Tools palette

Post by exheusden » Mon May 17, 2010 9:18 am

Thanks for that, Michael. I'd never have found the correct name, I'm sure. I tried with "Tools" (the name shown at the top of the Palette) and that, of course, did not work.

Works a treat now!

Regulae
Posts: 136
Joined: Tue Oct 20, 2009 6:05 am

Re: Removing the Tools palette

Post by Regulae » Tue May 18, 2010 1:49 am

Nice to hear things are working. It’s handy that the Rev environment is itself made up of Rev objects, so the Application Browser gives you access to them. Of course, this means it is possible to make changes that could disable Rev itself, so one must be careful. As I was unfamiliar with the name, I looked up Guardamar del Segura- it certainly is a beautiful part of the world.

Regards,

Michael

Post Reply