LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programatically get the type or style of a control?

I have some controls on an uir and programmatically want to know if one control is either a textbox or a ring. How do I get this out (I didn't found a corresponding attribute...)
0 Kudos
Message 1 of 2
(3,224 Views)
To programmatically determine the type of a control you can use

GetCtrlAttribute (panel, control, GetCtrlAttribute (panel, control, ATTR_CTRL_STYLE, &style);

The value in "style" can be compared with the corresponding constants fountd in userint.h (for example CTRL_RING or CTRL_TEXT_BOX).


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(3,224 Views)