11-21-2017 07:53 AM
Is it possible to detect, whether user clicks on the +- Icons to expand/collapse tree items?
11-21-2017 08:12 AM
Yes, the tree control has events for both
http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/treecontrol_e/
11-21-2017 08:14 AM
With an event structure you can capture Item open & close events.
11-21-2017 08:17 AM
You can also just use a 'Mouse Up' (or Down) event. This will generate the coordinates of where you clicked. There is an Invoke Node that then turns this into the name of the item checked.
See my attached code that decides if a clicked item is expandable and if it isn't it changes the icon.