Re: [gtk-list] Option menu example



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/



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