LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple selection in a tree without using CTRL or Shift key

Thank you very much for your .vi.  It's really a lot simpler than mine 😉

I'll use "the mouse down event".

Any help on this? Will I have to use the coordinates where the click occured? I never used and seen an example with it...

Thanks in advance! Any help would be greatly appreciated.
0 Kudos
Message 11 of 16
(1,372 Views)

Yes, you use the coordinates, along with the following VI:  vi.lib\tree\Tree Point Converter.llb\Point to Row-Col.vi.  Not that this VI was converted into a method of the Tree control in LabVIEW 8.0 and later.

Good luck,
-D

Message 12 of 16
(1,369 Views)
Thank you very much Darren!

It works perfectly with the "mouse down event". Smiley Very Happy
0 Kudos
Message 13 of 16
(1,360 Views)

What about de-selecting all items programmatically??

I have it set to 0 or 1 item, but no obvious way to deselect an item in the tree.

Thx

0 Kudos
Message 14 of 16
(1,334 Views)

For a multi-select tree, you can wire an empty array of strings to a local variable (or Value property) of the tree to clear its selection.  For a single-select tree, an empty string should do it.  I just verified this in LabVIEW 8.2, I'm sure it works in previous versions.

-D

Message 15 of 16
(1,330 Views)

You are correct, although at the time it was not working for me.

What I had done though was to set the tree from a control to an indicator and back.

This fixed the problem. But you are correct, setting it to a null string does de-select a single or 0 select tree.

0 Kudos
Message 16 of 16
(1,315 Views)