Re: [gtkmm] Custom widget example
- From: Ainsley Pereira <gtkmm pebble org uk>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] Custom widget example
- Date: Mon, 11 Oct 2004 15:44:57 +0100
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...)
Hope that helps,
Ainsley
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]