LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to obtain a list of child controls?

Hi!
 
I was wondering if there is any VI similar to the Win32API EnumChildWindows, which returns an enumeration of
the child controls of a window.
 
There is?
 
Otherwise, how to simulate this behaviour?
0 Kudos
Message 1 of 6
(3,471 Views)

I'm not sure what you mean by "child controls of a window", but the VI server (the LV programmatic interface) includes many properties and methods for the different classes of objects, including the VI object. One of those properties is Controls[], which is an array of LV references to all the controls in a particular structure. Attached is an example for a VI. Since tab controls and clusters have additional controls in them, it has to get those seperately.

Here is a good tutorial about this.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,465 Views)
The Controls[] properties is exactly what I was looking for.
 
I browse constantly through the LabVIEW documentantion, but it seems thare is no handy reference to object properties. For instance, I have to search "ObjectG" in my LabVIEW windows help to obtain some information, for there is no link in the help TOC about this argument.
 
Do you know whether there are available reference manuals devoted to object properties?
0 Kudos
Message 3 of 6
(3,450 Views)
The public class hierarchy is documented in the help system under "Property and Method Reference" and the Gobject (not ObjectG) class is there as well.

___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,445 Views)

Well, in my version (6.1 base, French) GObject is ObjectG and the property referece in under "Networking with LabVIEW".

On this side of the ocean some like it terribly complicated....

0 Kudos
Message 5 of 6
(3,443 Views)
In my pro 6.1, it's called GObject (must mean the french have it backwards) and the reference is under Programmatically Controlling VIs, which makes sense (somewhat).

___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(3,437 Views)