LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmically Collapse Contents of Tree Control in CVI 2020

Solved!
Go to solution

Does anyone know if there is a way to programmically collapse the contents of a tree control in CVI 2020? I cannot find this in the help or the examples.

 

I am trying to have everything collapsed so that the user can select which information they want expanded.

 

Thank you.

0 Kudos
Message 1 of 3
(189 Views)
Solution
Accepted by topic author telsenbroich

To have all items in a tree control collapsed you can call

SetTreeItemAttribute (panelHandle, TreeControlID, VAL_ALL_OBJECTS, ATTR_COLLAPSED, 1);


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(166 Views)

That is exactly what I was looking for! Thank you so much!

0 Kudos
Message 3 of 3
(112 Views)