LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase the row spacing between tree items in a modern tree control

Solved!
Go to solution

I have a VI where i have used a tree control from the modern pallate, I need to increase the space between tree items. and should be maintained even if I programatically Add or Remove tree items

PS:  "AutoRowHt " Property doesnt seem to help here

 

0 Kudos
Message 1 of 4
(3,319 Views)
Solution
Accepted by topic author swpo

Unfortunately I didn't have time to play around with whether or not this propgates to new programmatically created entries in the tree control, but if not, you could always just re-run this section of code (or specify the specific row since you'll know the index of the inserted element).

 

height.png

 

Specifying -2 into the Row Number property will specify the change is to be made for all rows in the tree.

Message 2 of 4
(3,287 Views)

Thank you 🙂

 

I shall build my code around this logic  🙂

0 Kudos
Message 3 of 4
(3,252 Views)

Necro post but this is the first result from Google. Just commenting to say the above can be used with the property "ActiveItem.Tag" as well. 

 

BertMcMahan_0-1764782611608.png

 

(I'd incorrectly assumed that the ActiveItem.Row property referred to visible row, but it refers to all rows, whether or not they're visible.)

0 Kudos
Message 4 of 4
(35 Views)