|
|
| Author |
Message |
|
|
Jamiil Familiar Face
Joined: 22 Sep 2005 Posts: 20
|
Posted: Tue Nov 22, 2005 3:19 am Post subject: Gtk::RadioButtons??!! |
|
|
Hi folks!
I have a few Gtk::RadioButton in my application which when displayed are active,
but I want'em to displayed inactive. How can I make this radio buttons first
display unselected and then, when the user makes the selection, appear selected.
TIA |
|
| Back to top |
|
 |
pasture Familiar Face
Joined: 21 Nov 2005 Posts: 5
|
Posted: Tue Nov 22, 2005 1:48 pm Post subject: |
|
|
| Did you try "gtk_toggle_button_set_active"? If that doesn't work, I don't have any ideas. |
|
| Back to top |
|
 |
irvm Familiar Face
Joined: 21 Sep 2005 Posts: 12
|
Posted: Tue Nov 22, 2005 8:14 pm Post subject: Radio Buttons? |
|
|
Hi:
Just create the first radiobutton (in each group) and don't add it to the container.
This 'dummy' button will be selected, but invisible, leaving the rest of the buttons
in the group unselected, until clicked.
use Gtk (*) # Example in Qu:
app = application("Radio Test")
win = window(app.name)
panel = vbox()
win.add(panel)
btn = [0]*4
btn[0] = radio_button('dummy')
btn[1] = radio_button('One')
btn[2] = radio_button('Two')
btn[3] = radio_button('Three')
panel.add(btn[1..3])
win.show_all
app.main |
|
| Back to top |
|
 |
|