LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Select All" button implementation in tree control

Solved!
Go to solution

Attached is my LabVIEW 2019 SP1 (64-bit) tree control application VI. Instead of using Ctrl or Shift key to select hundreds of Item Codes to either add or remove, I just click on the "Select All" button, then all Item Codes are highlighted in blue, ready for addition or removal.

 

How do I implement this button?

 

0 Kudos
Message 1 of 4
(955 Views)
Solution
Accepted by topic author cha@bellflight.com

You could implement this with the two tree properties "All Tags" and "Value". Both are type String[] so you can just read the All Tags property and feed the output value into the Value property which will select everything (for a tree the value represents what is selected).

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 4
(947 Views)
Solution
Accepted by topic author cha@bellflight.com

Thanks for your help, Jacobson,

 

Attached is the solution.

0 Kudos
Message 3 of 4
(888 Views)

I made a set of code for doing multi tree and listbox selection with the checkbox glyph here.

 

https://forums.ni.com/t5/Community-Documents/Listbox-Multicolumn-Listbox-and-Tree-Item-Selection/ta-...

 

In it I have a right click menu for Select All/Select None, and Invert Selection.

0 Kudos
Message 4 of 4
(829 Views)