Re: [gtkmm] ImageMenuElem again



On Thu, 2004-02-05 at 19:20, Diana Esch-Mosher wrote:
> So I know that buttons can be packed with a pixmap and text and the
> OptionMenu is just a button and menu. Why is it that an ImageMenuElem's
> image is not displayed when selected, only the associated text. Is there
> a flag somewhere I don't have set or is this a bug? If OptionMenu
> properly displayed the image and the text upon selection my life would
> be a whole lot easier!

I have not been following this in detail, and I'm afraid that I have
very little time for the next few weeks, but ...
1. It's possible that the OptionMenu is not meant to do this. I guess
that the OptionMenu is just an Entry with a menu that allows you to
choose the text of the entry, but after the text has been selected then
the actual menu item that was used is irrelevant. See 3.
2. Can you find an example of a GTK+ or gtkmm application that seems to
do what you want?
3. I know that it's a crappy answer for now, but OptionMenu is
deprecated in gtkmm 2.4, which is not yet stable or widely available.
The new Gtk::ComboBox widget should be a lot simpler and more flexible,
and I think it will do what you want. There is an example already.
-- 
Murray Cumming
www.murrayc.com
murrayc murrayc com




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