Re: Toggle buttons
- From: Owen Taylor <otaylor redhat com>
- To: hopeye cfl rr com
- Cc: David Odin <David dindinx org>, gtk-app-devel-list gnome org
- Subject: Re: Toggle buttons
- Date: Tue, 7 May 2002 10:28:42 -0400 (EDT)
Jim Parker <hopeye cfl rr com> writes:
G'Day !
I am building a toolbar(s) in a CAD application. While I use radio-buttons
in my menu, the UI would require a major rewite to incorporate the use of
radio-buttons and I don't think it wold work (I am probably blinded by
convention here).
I could use normal buttons for this, but wanted to give the user a visual
clue as to what state the program was in. Also the program continues to be
in this state until changed by the user explicitly. (for example, drawing
points on a screen with a mouse. You do not want to force the user to
click a button for each point.)
As another poster pointed out gtk_toggle_button_set_active ( ) is the way
to go. Ugly, but ...
Call gtk_toggle_button_set_mode(button, FALSE) on radio buttons and they'll
draw like toggle buttons.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]