LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

edit tree column

Solved!
Go to solution

Hi guys,

 

I am new to tree control.  I am trying to programmatically modify the the status of the second column without changing the left cell text of the tree control (please see attached picture).  Can you please point me to the right direction?  I use Labview 8.5.  Thanks.

 

 

 

I am pretty newTree.JPG

0 Kudos
Message 1 of 3
(3,677 Views)
Solution
Accepted by topic author sangbui_palpro

Hello,

 

There is a feature in LabVIEW, called property node. With property node you can programatically change front panel objects. You can make property node with right-clicking on object you want to change programatically, and go Create>Property Node and then you have all the properties of selected object you can change programatically. When you created property node, you can change access (read/write) with right click, and then you choose Change All To Write or Change All To Read, depending on what you have selected.

 

In your case you will need 3 properties:

Active Cell > Active Column Number - sets/reads active column number

Active Item > Row Number - sets/reads active column number

Active Cell > String - sets/reads the item's string

 

If you still have any questions fell free to ask.

 

Regard,

Gregor Cerne

 

Message 2 of 3
(3,645 Views)

Good morning,

 

In addition to Gregor's post, please see this example for using property nodes with trees.

 

Regards,

 

Lisa

Applications Engineer
National Instruments
Message 3 of 3
(3,632 Views)