From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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 3
(2,619 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 3
(2,587 Views)

Thank you 🙂

 

I shall build my code around this logic  🙂

0 Kudos
Message 3 of 3
(2,552 Views)