LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Enum ctrls on the specified panel

Solved!
Go to solution

Given panel handle, is there a way to get a list of all controls on the panel programmatically?

 

George Zou
0 Kudos
Message 1 of 2
(3,002 Views)
Solution
Accepted by zou

yes Smiley Happy

 

You can use the panel attribute ATTR_PANEL_FIRST_CTRL to obtain the first control on a panel, and then the control attribute ATTR_NEXT_CTRL to find all other controls:

 

GetPanelAttribute ( panel_handle, ATTR_PANEL_FIRST_CTRL, &control_id );

 

while ( control_id > 0 )

 

GetCtrlAttribute ( panel_handle, control_id, ATTR_NEXT_CTRL, &control_id );

Message 2 of 2
(2,994 Views)