Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Radio button grouping with glade

Tags:

glade

gtk2hs

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?

like image 389
Stuart Paton Avatar asked Feb 19 '13 15:02

Stuart Paton


People also ask

How do I group set radio buttons?

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.

What is button group in radio button?

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.

How do I group radio buttons in VB net?

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.


2 Answers

Follow these steps:

  • select the desired radio button
  • click the ... button near the Group entry
  • Choose a Radio Button in this project dialog
    • select the desired row in Objects list
    • click the radio button at the left side of the row (it will be check)
    • press OK button
like image 71
Szilárd Pfeiffer Avatar answered Oct 04 '22 06:10

Szilárd Pfeiffer


Slight more accurate / up to date, for each radio button in a group, except the one that you want to be initially active,

  1. select the (not to be initially active) radio button,
  2. under "Button Attributes" in the Group: field, enter the ID of the initially active radio button in this group (or click on the edit icon on the right and select it in the popup list by clicking on the radio button left of its name).
  3. Click OK.

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.

like image 31
Carlo Wood Avatar answered Oct 04 '22 07:10

Carlo Wood