[10044] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Option menu example
daemon@ATHENA.MIT.EDU (Brandon Long)
Thu Nov 12 14:13:26 1998
Date: Thu, 12 Nov 1998 11:11:50 -0800
From: Brandon Long <blong@fiction.net>
To: gtk-list@redhat.com
Reply-To: blong@fiction.net
Mail-Followup-To: gtk-list@redhat.com
In-Reply-To: <364AF022.F6558CCB@nl.compuware.com>; from D. Emilio Grimaldo Tunon on Thu, Nov 12, 1998 at 03:26:42PM +0100
Resent-From: gtk-list@redhat.com
On 11/12/98 D. Emilio Grimaldo Tunon uttered the following other thing:
> Hi,
> I noticed the Option Menu thingy is *not* even mentioned in
> the Tutorial! by chance I found it in the Reference manual
> but there isn't much info there. I looked into gtktest.c but
> it is not too clear. Can anybody show me a simple example
> of an option menu:
>
> +-----------------+
> | Default [=] |
> +-----------------+
>
> With suboptions "one", "two" ? and a callback for 'changed'
> event and a mention of a function to obtain the currently
> selected item?
There is an example in testgtk, and also in gbuffy
(http://www.fiction.net/blong/programs/gbuffy/).
But, the OptionMenu is a menu, and doesn't appear to have a method to
read the current value, you have to keep track with the activate signal.
Brandon
--
Brandon Long "The difference between death and taxes is death
MD6 Crash Test Dummy doesn't get worse every time Congress meets."
Intel Corporation -- Will Rogers
I'm too low on the totem pole to speak for Intel.
http://www.fiction.net/blong/
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null