LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Tree Control - Setting Item symbol to 41 programmatically (Break or horizontal line)

Solved!
Go to solution

Hi 

How to set the Tree control Item Symbol to 41 programmatically?

Its possible to do it when the VI is not running.

Please see attached example.

/pmn  

0 Kudos
Message 1 of 8
(3,207 Views)

Hi PMN,

 

there are several methods available for Tree controls, one of them is called "Custom Item Symbols.Set Symbol": you can always add your own symbols and decide their index in the symbols array…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,197 Views)

Hi GerdW

I know, but the Custom Item Symbol will only set the Item symbol in Column number 1 and not the horizontal line through ALL column

as shown at the picture on the VI.

The Symbol 41 will also clear all other text at the line. (like a new page brake)

 

Br Per

 

0 Kudos
Message 3 of 8
(3,184 Views)

Hi PMN,

 

well, that's some special feature and is not "symbol 41".

 

With my LV2017 installation the line break is shown in a different position to indicate it is not a default "symbol"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(3,180 Views)

Hi GerdW

 

Ok but is it possible to set it programmatically?

 

Br Per

 

0 Kudos
Message 5 of 8
(3,176 Views)

Hi PMN,

 

I haven't found a (programmatic) way to insert that linebreak in a tree so far. But I don't use treee controls often…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,174 Views)
Solution
Accepted by topic author PMN1966

Set the value to -1.

 

I found it by manually inserting the break.  Then running the property node to tell me the value of the item symbol for that item.

Message 7 of 8
(3,153 Views)

Thanks RavensFan!

 

You are my hero! 

(sorry for the late reply)

 

Br pmn

 

 

 

 

 

0 Kudos
Message 8 of 8
(3,123 Views)