I am programming a GUI in Haskell using the editor Glade with the gtk2hs bindings. Currently I am failing miserably at grouping the radio buttons. It will not let me select the group name. Can someone help?
You group radio buttons by drawing them inside a container such as a Panel control, a GroupBox control, or a form. All radio buttons that are added directly to a form become one group. To add separate groups, you must place them inside panels or group boxes.
A radio button group is a container control that holds radio buttons. The radio button group defines the layout for the buttons it contains, including a group title, text alignment for button labels, and whether or not to show a border. You can place a radio button group control within a section control.
The RadioButton control is used to provide a set of mutually exclusive options. The user can select one radio button in a group. If you need to place more than one group of radio buttons in the same form, you should place them in different container controls like a GroupBox control.
Follow these steps:
Slight more accurate / up to date, for each radio button in a group, except the one that you want to be initially active,
Repeat for all initially not active radio buttons that should be linked to the initially active one. Note that later you can change the initially active one by simply making a radiobutton Active by checking the Active Checkbox under "Button Attributes". If it is already marked active, first unmark it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With