RE: [gtkmm] Custom widget example
- From: "Roel Vanhout" <rvanhout riks nl>
- To: "Murray Cumming" <murrayc murrayc com>, "Ainsley Pereira" <gtkmm pebble org uk>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: RE: [gtkmm] Custom widget example
- Date: Tue, 12 Oct 2004 09:57:22 +0200
The Ardour people (www.ardour.org) have written some custom widgets with
gtkmm. I was pointed to that project when I asked about custom widgets
on this list (although I cannot find my own message any more). For
example, take a look at
http://ardour.org/cgi-bin/viewcvs.cgi/ardour/gtk_ardour/gain_pan_meter.h
?rev=1.18&content-type=text/vnd.viewcvs-markup, that's a class that
subclasses Gtk::Vbox and implements its own drawing. Maybe it can give
you some hints.
cheers,
roel
-----Original Message-----
From: Murray Cumming [mailto:murrayc murrayc com]
Sent: Monday, October 11, 2004 19:58
To: Ainsley Pereira
Cc: gtkmm-list
Subject: 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_widge
> > t/
> >
> > 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
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]