Re: Drawing inside a container widget



problem solved....

Just a call to Gtk::Container::on_expose_event from within my
on_expose_event did the trick...


Mohith wrote:
> 
> I have derived a class from *Gtk::Container* for creating a menu like
> widget
> and it doesnt have a window of its own, i.e. *set_flags(Gtk::NO_WINDOW)*
> is
> called in the contructor. This widget has two *Gtk::HBox* widgets
> containing
> navigation controls (close and back) and options, which are basically *
> Gtk::Button*s. Additionally my container draws on the parent window by
> overriding the *on_expose_event* member. It all works fine except the fact
> that the buttons are not visible! What I have noticed is, if I remove the
> *
> on_expose_event* override, they become visible and in the exact location
> where they ought to be. Is it against the rules for a widget derived from
> *
> Gtk::Container* to draw on its parent?
> 
> As required I am overriding *on_size_request*, *on_size_allocate*, *
> forall_vfunc*, *on_add*, *on_remove* and *child_type_vfunc* plus the *
> on_expose_event*.
> 
> regards,
> Mohith
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Drawing-inside-a-container-widget-tp21805161p21807369.html
Sent from the Gtkmm mailing list archive at Nabble.com.



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