Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Gtk Toggle buttons behave like radio buttons?

Name: Anonymous 2010-08-13 13:46

I have 5 toggle buttons in gtk and I want them to behave like radio buttons where clicking one will cause the others to deactivate.

I thought my initial solution was simple enough. Simply program each button to deactivate the all the others when clicked. The problem is though, a change in state counts as a "clicked" signal so the other button ends up running its "deactivate all other buttons" code as well and ends up deactivating the clicked button.

Name: Anonymous 2010-08-13 13:54

Well, just make sure not to trigger it's own from now on.

Name: Anonymous 2010-08-13 14:51

>>1
Don't set it on "value changed," if you can.  Set it on "clicked" or some other event that indicates the user actually affected it directly.  I've never played with Google Toolkit but isn't it essentially Java, making this basic Java event handling?

Name: Anonymous 2010-08-13 14:54

>>3
YATH

Name: Anonymous 2010-08-13 15:48

>>4
HYTB

Name: Anonymous 2010-08-13 21:37

>>3
Google Toolkit
9/10, nicely done.

Name: ​​​​​​​​​​ 2010-10-25 4:58

Name: Anonymous 2010-12-28 15:39

<

Name: Anonymous 2011-02-02 23:16

Name: Anonymous 2011-02-17 20:22

that's cool and all, but check 'emNewer Posts
Don't change these.
Name: Email:
Entire Thread Thread List