LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use the LV7 tree control?

I don't know how to use the tree control,can you give me an example
for tree control?
thank you in advance!
0 Kudos
Message 1 of 6
(3,506 Views)
Do you have something specific you would like to do with it? The only example of the tree control (that I could find) is Directory Hierarchy in Tree Control.vi. Even though it's a confusing example to start off with and sort through, I would recommend looking through the subvi's at the methods and properties used to modify the tree. If, after fooling around, you have specific problems then try posting those.
Message 2 of 6
(3,506 Views)
m3nth wrote in message news:<506500000005000000D9140100-1042324653000@exchange.ni.com>...
> Do you have something specific you would like to do with it? The only
> example of the tree control (that I could find) is Directory Hierarchy
> in Tree Control.vi. Even though it's a confusing example to start off
> with and sort through, I would recommend looking through the subvi's
> at the methods and properties used to modify the tree. If, after
> fooling around, you have specific problems then try posting those.


I want to build program interface like the picture below using the
tree control,
it can be used to select the test point,when click the subtree,the
program excute accord to testpiont setting.can you give me some
advices on
how to build the program like that use the tree control.

I don't know how to post the VI or picture on the comp.lang.labview?
can you tell me ?
I appreciate any help!
thank you very much!
0 Kudos
Message 3 of 6
(3,506 Views)
yanhuaguang@sohu.com (yanhuaguang) wrote in message news:<3be1365e.0308102304.5125e410@posting.google.com>...
> m3nth wrote in message news:<506500000005000000D9140100-1042324653000@exchange.ni.com>...
> > Do you have something specific you would like to do with it? The only
> > example of the tree control (that I could find) is Directory Hierarchy
> > in Tree Control.vi. Even though it's a confusing example to start off
> > with and sort through, I would recommend looking through the subvi's
> > at the methods and properties used to modify the tree. If, after
> > fooling around, you have specific problems then try posting those.
>
>
> I want to build program interface like the picture below using the
> tree control,
>
it can be used to select the test point,when click the subtree,the
> program excute accord to testpiont setting.can you give me some
> advices on how to build the program like that use the tree control.
>
> I don't know how to post the VI or picture on the comp.lang.labview?
> can you tell me ?
> I appreciate any help!
> thank you very much!


x@no.email:
can you tell me how to post the VI or file on the comp.lang.labview?
0 Kudos
Message 4 of 6
(3,506 Views)
I have attached the original graphic you could not attach as well as code I've used to populate a tree control from an array. The first item in each column of the array was the parent item and all items that weren't null were added as child-only items to that parent. There is also a 'Tags' array utilized which can be used to add item specific tags or unique id's besides the text that will be displayed. To use this code you would populate the tree and have an event handler check for an item selection (value change) or double click. This would then run the appropriate code which could use the TreeControl methods and the ItemTag passed into the event handler to determine what settings to use or whatever the specific application might happen to be.
Download All
Message 5 of 6
(3,506 Views)
Correction to the above post: Values in the first column are created as parent items.
0 Kudos
Message 6 of 6
(3,506 Views)