LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview progammatically hide tool palette

Solved!
Go to solution

Dear Users: 

Is there any way to programmatically hide the tool palette when running a Vi?

Thank you

A

0 Kudos
Message 1 of 10
(241 Views)

Yes.  Right-click the VI Icon shown on the upper-right corner of the Front Panel or Block Diagram, choose "VI Properties", then the Category "Windows Appearance".  On the window that pops up, choose "Custom" (on the left) then press "Customize".  The second set of options shown on the left starts with "Show toolbar when running".  Click it to turn it off.  Run your VI and notice there's no visible Toolbar.

 

Bob Schor

0 Kudos
Message 2 of 10
(224 Views)
Solution
Accepted by topic author Yixiao-uncle

Yes.  Use Application Property Node.  Application=>Tools Palette Open.  Set it to False.

ToolPalette.png

ToolPalette2.png

 

 

George Zou
Message 3 of 10
(216 Views)

To make the brown (private) classes/properties/methods available, add:

SuperSecretPrivateSpecialStuff=True

to your LabVIEW.ini, then restart LabVIEW.

Message 4 of 10
(204 Views)

I noticed I didn't exactly answer your question -- I left out "programmatically".  I see "zou" found one way to do this, I found another (and I can't be sure I can find the method zou described -- it's probably the same thing I'm going to describe, so feel free to give him credit for the solution ...)

 

Here are the steps I took to do this.

  • Assumption -- there is a VI I'll call "Top Level VI" that is the "Main VI" whose Front Panel is visible when the program runs, and it is the Front Panel that you want not to see the Toolbar.
  • On the Block Diagram of this Top Level VI, somewhere to the left of the other code (so it can be the first thing executed, see last Bullet Point), place a "VI Server Reference", found on the Application Control palette.
  • With your mouse hovering over the "output wire" of the VI Server Reference, right-click, "Create", "Property for VI Class", "Toolbar", "Visible".  This will put a VI Property Node showing "TB.Visible", the Visible property for the Tool Bar as an Indicator (the wire comes out the right side of the Node.
  • Right-click this Indicator, "Change All to Write" (which makes it a Control), wire the "This VI" reference to the top left connector, wire a Boolean "False" to the "TB.Visible" input, and make sure this little bit of code is run first.  [Actually, you can run it at any time, but the Tool Bar won't vanish until it is run.]

Bob Schor

0 Kudos
Message 5 of 10
(190 Views)

@Bob_Schor wrote:

I noticed I didn't exactly answer your question -- I left out "programmatically".  I see "zou" found one way to do this, I found another (and I can't be sure I can find the method zou described -- it's probably the same thing I'm going to describe, so feel free to give him credit for the solution ...)

 

Here are the steps I took to do this.

  • Assumption -- there is a VI I'll call "Top Level VI" that is the "Main VI" whose Front Panel is visible when the program runs, and it is the Front Panel that you want not to see the Toolbar.
  • On the Block Diagram of this Top Level VI, somewhere to the left of the other code (so it can be the first thing executed, see last Bullet Point), place a "VI Server Reference", found on the Application Control palette.
  • With your mouse hovering over the "output wire" of the VI Server Reference, right-click, "Create", "Property for VI Class", "Toolbar", "Visible".  This will put a VI Property Node showing "TB.Visible", the Visible property for the Tool Bar as an Indicator (the wire comes out the right side of the Node.
  • Right-click this Indicator, "Change All to Write" (which makes it a Control), wire the "This VI" reference to the top left connector, wire a Boolean "False" to the "TB.Visible" input, and make sure this little bit of code is run first.  [Actually, you can run it at any time, but the Tool Bar won't vanish until it is run.]

Bob Schor


OP is asking about the tool palette:

raphschru_0-1781714338946.png

 

not the tool bar 😃:

raphschru_1-1781714420626.png

0 Kudos
Message 6 of 10
(179 Views)

@Yixiao-uncle wrote:

Dear Users: 

Is there any way to programmatically hide the tool palette when running a Vi?

Thank you

A


I'll chime in.  There does exist a floating window known as the Tool Pallet.  This exists in the development environment and is not usually visible!  Autotool selection (which I personally don't like) Tab and Spacebar tapping makes that floating vi mostly useless (well, the paint tool could not otherwise be selected...moot point but still..)

 

"Tool bar" is a different thing.  You should have some advice about how to hide that.  So, what are you seeing that you don't want to see it?


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 10
(156 Views)

Wow!  I must be slipping here!  It has been (maybe 15) years since I used the Tools Palette on a regular basis.  Now, in the rare instances where it might be useful, I have to look up how to make it pop up.  

 

As far as I know, the Tools Palette only pertains to developing LabVIEW code.  About the o nly use I've had for them is when I import a VI I wrote 20 years ago with LabVIEW 7, where the default view of the Front Panel used a darker shade of grey for the background, which I wanted to change to the more modern light grey.  By now, I rarely need to "borrow" from this old code (having incorporated my older routines in newer programs and changing the Front Panel background as I went).

 

Bob (Red-faced) Schor

0 Kudos
Message 8 of 10
(120 Views)

Hi Jay,

 


@JÞB wrote:

Autotool selection (which I personally don't like) Tab and Spacebar tapping makes that floating vi mostly useless (well, the paint tool could not otherwise be selected...moot point but still..)

You can show the tool palette floating window by using shift-right click in empty space of the fp or bd window…

 

(I like AutoTool selection and have the tool palette hidden all the time.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 10
(97 Views)

Dear Zou: your solution is very simple and it works!🚀

 

raphschru: thank you for usefull information.

A

0 Kudos
Message 10 of 10
(75 Views)