LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parent only select in tree controls

Is it possible to set a tree control so that ONLY the parents are selectable and the children are disabled (i.e. a child tag will not be present in the output of the tree on the block diagram and the children won't highlight when a user tries to press them)?
 
Michael
0 Kudos
Message 1 of 2
(2,595 Views)

You can use the Point To Row Column method along with the Mouse Down? filter event to determine the tag of the item that was clicked...and if it was a child, discard the click.  You would have to do something similar with the Key Down? filter event if you don't want people navigating to child items with the arrow keys as well:

The Point To Row Column method is only available in LabVIEW 8.0 and later.  If you are in LabVIEW 7.x, you need to use the Point to Row-Col.vi in vi.lib\tree.

Good luck,
-D

Message Edited by Darren on 02-15-2007 05:49 PM

0 Kudos
Message 2 of 2
(2,593 Views)