LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

restore an item in tree control

Solved!
Go to solution

In the attached LabVIEW 2018 SP1 application VI, I use Tree Control for both "Controlled Tree Control" and "Default Tree Control".

 

When an item is moved from "Controlled Tree Control" to "Default Tree Control", it is dimmed. How do I restore it after removing it from "Default Tree Control" ?

 

Download All
0 Kudos
Message 1 of 5
(1,369 Views)

You don't want to add it to the end.  You want to find it in the original control, then set the property for it back to Enabled.

0 Kudos
Message 2 of 5
(1,348 Views)

Hello RavensFan (Knight of NI),

 

In the property node of "Controlled Tree Control", how do I replace "Edit Tree Items: Add Item to End" with "the original control" before setting the property back to Enabled ?

 

0 Kudos
Message 3 of 5
(1,336 Views)
Solution
Accepted by topic author cha@bellflight.com

Get rid of the add item to end.

 

Take the item from the 2nd list, and search for it in the first.

Set that item to the active item and wire a True to the enable.

 

Almost all the pieces are already there in the VI.  It is just doing the opposite, and perhaps adding the search function to loop through the first list until you find the matching item to re-enable.

0 Kudos
Message 4 of 5
(1,309 Views)

Hello RavensFan,

 

Thanks for your instructions. The revised LabVIEW 2018 SP1 VI works {see attachments}!

Download All
0 Kudos
Message 5 of 5
(1,272 Views)