Re: option menu truncation




Matthew D Allen <s2mdalle@titan.vcu.edu> writes:

> John Sullivan <sullivan@eazel.com> wrote:
> >I don't know if this would cause no text at all to appear. If you don't
> >call gtk_option_menu_set_history() on a new option menu, it won't display
> >any text until the user selects an item. This might be why no text shows
> >at all in your case.
> 
> Thanks for the suggestion - I tried it out, recompiled, and had the same
> problem still.  I've also tried using the set_active() calls within the
> gtk_menu heirarchy to see if I could get it to display text.  When the
> option menu is truncated, it's also truncated after you've selected
> something.
> 
> Maybe this is a "misfeature".  :)  I've looked through
> /usr/include/gtk/gtkoptionmenu.h for anything even somewhat relevant and
> there doesn't appear to be much.
> 
> Thanks for the suggestion though...if I figure it out I'll post back and
> let you know how I did it.

As John said, this is almost certainly an ordering problem.

You need to completely fill in your menu and show all the items
in it _before_ you attach it to the option menu, or the 
option menu will not request the correct size.

Regards,
                                        Owen



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