LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TreeView Control

Hi,
 
what is the recommended way to include a TreeView Control in applications built with LabVIEW 7.1?
 
I think there are at least two ways possible:
1. Use of the build in "Tree" control of LabVIEW
2. Use of ActiveX Technology with the Microsoft Control
 
What are the advantages and disadvantages of these two solutions?
Please provide some examples!
 
Kind regards,
Sunny
 
0 Kudos
Message 1 of 8
(3,725 Views)
ActiveX generally causes complications for LabVIEW applications.  Your application will not be platform dependent.  It will require that the end user has correct version of the component installed.  I only use ActiveX if there is NO other option.
Message 2 of 8
(3,719 Views)
I agree with Jim. Try to keep using one language without any external tools unless they are written in the same language.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 8
(3,711 Views)

Hi Jim,

i think your suggested strategy is comprehensible. I will try to use the within LabVIEW implemented control!

Regards,

Sunny 

 

0 Kudos
Message 4 of 8
(3,690 Views)

Hi Sunny,

the 'Directory Hierarchy in Tree Control.vi' you can find in the 'Directory Tree Control.llb' is a very good example how to build a tree structure in LV 7.1.

I hope, this example will help you.

Regards,

Carsten Sprung

Applications Engineer

NI Germany

0 Kudos
Message 5 of 8
(3,686 Views)
 
0 Kudos
Message 6 of 8
(3,677 Views)

Hi Carsten,

presed the wrong button 😉

i found the describe example ant it seems to be useful. A problem is that i want to scroll within the Tree Control by using the mouse wheel. I already know that this has to be done by using mouse events, but which property of Tree Control has to be set to adjust the displayed items?

Any idea or even another example?

Regards,

Sunny

0 Kudos
Message 7 of 8
(3,675 Views)

Hi Sunny,

you may control the left top cell with property and method nodes. You can first check the element which is actually in the cell and then you can let find out the next element. When the mouse wheel is used, you can change the actual task with the next/previous one. Unfortunately I don't have the time to built an example for you in the moment but I hope my hints would have helped you.

Regards,

Carsten Sprung

AE, NI Germany

0 Kudos
Message 8 of 8
(3,665 Views)