LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically set the selected radio button on a radio buttons group

Solved!
Go to solution

Good day, I have another question for you.

 

How can I programmatically set as selected a specifically radio button on a Radio Buttons Group? I think this is very simple but i can't find a solution.

 

Thank you in advance.

0 Kudos
Message 1 of 4
(3,961 Views)
Solution
Accepted by topic author FM82

You can use the SetActiveCtrl function

 

Capture.JPG

Message 2 of 4
(3,940 Views)
Solution
Accepted by topic author FM82

If you're using toolslib\custctrl\radioGroup.fp, then use Radio_SetMarkedOption.

 

If you're using toolslib\custctrl\radioBtnGrp.fp, then use RadioBG_SetMarkedOption or RadioBG_SetMarkedOptionCtrl.

 

Hope this helps.

Message 3 of 4
(3,926 Views)

Thanks for the help!

0 Kudos
Message 4 of 4
(3,915 Views)