LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the Lable value of Recessed Menu Ring Ctrl?

There are two characters in the control setting of "Recessed Menu Ring" Ctrl which are "Lable" and "Vaule"(Lable/Vaule Pairs). Use "GetCtrlAttribute" function can only get the value of "Value". But I want to get the vaule of "Lable". I find nothing relation to "Lable" after I search all the control attribute in the "GetCtrlAttribute" function. How should I do?
0 Kudos
Message 1 of 3
(2,842 Views)

GetCtrlIndex retrieves the index of the label/value pair that is actually selected on the control. You can pass this value to GetLabelFromIndex and retrieve the label associated with that particular label/value pair.

You can also retrieve the label of an item not actually selected in the control, knowing the value associated with it: use GetIndexFromValue function to retrieve the index associated with the desired value and pass it to the functions describer previously.



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?
0 Kudos
Message 2 of 3
(2,836 Views)
Thank you very much. It does work now.
0 Kudos
Message 3 of 3
(2,833 Views)