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
(4,254 Views)
Solution
Accepted by topic author FM82

You can use the SetActiveCtrl function

 

Capture.JPG

Message 2 of 4
(4,233 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
(4,219 Views)

Thanks for the help!

0 Kudos
Message 4 of 4
(4,208 Views)