Page 1 of 1

Setting a Radio Button

Posted: 11 May 2018, 15:20
by kczx3
In v2, is there any way to check a radio button in a radio control group without giving a name to each of them? By only giving one a variable name and using Submit(), we can get the position of the currently selected radio. But I don't see a way to set the selected radio button based on position. In v1.1, you could set it by passing the radio button's text as the ControlID parameter of GuiControl though I'd prefer using position.

Re: Setting a Radio Button  Topic is solved

Posted: 11 May 2018, 16:31
by lexikos
If you don't want to assign a name, you can use the ClassNN or store each radio button (returned by Gui.Add) in an array.

Re: Setting a Radio Button

Posted: 11 May 2018, 18:48
by kczx3
Sounds good. Thanks for your reply!