Page 1 of 1
Read only radio button
Posted: Thu Mar 23, 2017 11:13 pm
by billcross
I have set the readonly property of a radio button, but it does not seem to prevent clicking on the field and changing it's value, is this a bug ?
Re: Read only radio button
Posted: Fri Mar 24, 2017 12:13 am
by trossiter
Are you setting its ReadOnly property to True because you don't want the user to change it? If so, I would set its Enabled property to False instead. This will grey it out and visually tell the user that this radio button's value currently cannot be changed.
Just make sure you do the same for the rest of the radio buttons you have grouped together. An easy way to do this is if all the radio buttons you want to disable are in the same group box, set the group box's EnableChildren property to True. This will allow all of the child components in the group box to share its Enabled property. Then all you have to do is enable or disable the group box, and everything inside it will be enabled or disabled as well.
Re: Read only radio button
Posted: Fri Mar 24, 2017 12:27 am
by billcross
I have done that but I still think that setting ReadOnly property to True should make the radio button unchangeable.