03-20-2026 04:15 PM
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.
Solved! Go to Solution.
03-21-2026 04:04 AM
To have all items in a tree control collapsed you can call
SetTreeItemAttribute (panelHandle, TreeControlID, VAL_ALL_OBJECTS, ATTR_COLLAPSED, 1);
03-23-2026 11:50 AM
That is exactly what I was looking for! Thank you so much!