Re: Untoggling toggle buttons




Rob Huffstedtler <rob@bagpipe.com> writes:

> Is there a simple way to set up toggle buttons as some sort of group so
> that I could send one signal and untoggle everybody except the one which
> is currently pressed (ie. I want to make my toggle buttons act more like
> radio buttons than check buttons).
> 
> The obvious way to do it is to put them into an array, but I haven't quite
> figured out how to compare as I'm iterating through it so that I don't
> untoggle the button I just pushed.

If you have some radiobuttons, and do:

  gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (radio_button), FALSE);

Then they'll be drawn like toggle buttons.

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]