LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert a symbol in the tree control

Hi , I use a tree control in a VI. I insert a symbol before the child item1, in the picture one. When the mouse double clicks, I want the symbol to change in the picture tow. Thanks.

 

0 Kudos
Message 1 of 6
(4,891 Views)

picture in the attachment.

Download All
0 Kudos
Message 2 of 6
(4,890 Views)

You can use the Active item->Symbol-property to change the icon.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(4,857 Views)

You'll probably want to check the current symbol.  If it is already a 5...change it to 4....and vice-versa.

Capture.PNG

aputman
Message 4 of 6
(4,836 Views)

There is a great example here on tree controls including changing the symbol for open and closed states.

https://decibel.ni.com/content/docs/DOC-25645

 

Mike

0 Kudos
Message 5 of 6
(4,815 Views)

thanks

0 Kudos
Message 6 of 6
(4,804 Views)