Re: Toggle buttons
- From: Marcelo <mrl hellfire leitner homeip net>
- To: Jim Parker <hopeye cfl rr com>
- Cc: "GTK+ mailing list" <gtk-app-devel-list gnome org>
- Subject: Re: Toggle buttons
- Date: Sun, 5 May 2002 16:18:48 -0300
On Sun, May 05, 2002 at 03:05:02PM -0400, Jim Parker wrote:
G'Day !
I have an arbitrary number of toolbars with toggle buttons that vary
dynamically based on the program state. ( I hope you understand that ;-)
My problem is that only one toogle button may be active at a given time on
any toolbar. In other words if the user clicks a toggle button all other
toggle buttons must become inactive. (The use of a radio button is not an
option)
Is there a way to untoggle a button on any visible toolbar, when another
toggle button is selected ? Any example code around ?
cheers,
Jim Parker
---end quoted text---
Hi Jim!
With gtk+1.2 you can just use this:
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button_widget), FALSE);
in all toggle buttons you wanna disable..
Yes, it's ugly to call this on a lot of buttons, but I see no other exits..
[]'s
--
Marcelo R Leitner <mrl netbank com br>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]