Re: Using libglademm with custom widgets



On Fri, 2005-01-14 at 09:41 +0200, Damon Oberholster wrote:
> Hi
> 
> I realize it has been a while since this posting, but I've
> been busy with a few other things until now.
> 
> > 
> > I recommend the get_widget_derived() technique:
> >
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch19s03.html
> 
> I've looked at the example in the libglademm documentation.
> Please tell me if this is right: For instance, if I would
> like to have a custom widget that simply draws a red
> circle...would I derive a widget from the "Drawing Area"
> widget and then have a method that draws a circle? (am I
> thinking in the right direction?)

Yes, or you could derive from Gtk::Widget instead of Gtk::DrawingArea.
 
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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