Re: [gtkmm] Custom widget example



On Mon, 2004-10-11 at 15:44 +0100, Ainsley Pereira wrote:
> On Mon, Oct 11, 2004 at 04:27:12PM +0200, Murray Cumming wrote:
> > I am working on a new chapter for the gtkmm book about implementing custom
> > widgets. I have already finished the part about custom containers, but now
> > I'm trying to create an example of a custom widget that does its own
> > drawing.
> > 
> > I took bits of code from here and there, and looked at gtklabel.c for a
> > simple example, but I can't get it to actually show anything in the
> > widget. Would someone more experienced with this like to take a look,
> > please?:
> > 
> > http://cvs.gnome.org/viewcvs/gtkmm/examples/book/custom/custom_widget/
> > 
> > It's in both the HEAD and gtkmm-2-4 branches in cvs.
> 
> Hi Murray,
> 
> I'm afraid I don't currently have the ability to test out this theory,
> but based on my experience of using drawingareas, might you not need to
> call add_events(Gdk::EXPOSURE_MASK); ? (Sorry if you are calling that
> somewhere and I've just missed it...)

Thanks, but that does not seem to make a difference.

-- 
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]