Re: custom_widget example not working
- From: Murray Cumming <murrayc murrayc com>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: custom_widget example not working
- Date: Thu, 02 Dec 2004 22:29:19 +0100
On Thu, 2004-12-02 at 12:46 -0500, Paul Davis wrote:
> >> I found several postings about custom widgets. The examples of working
> >> widgets
> >> did not derive from Gtk::Widget but from a non abstract widget (e.g.
> >> Gtk::DrawingArea).
> >
> >For me, GtkLabel is a "custom" widget. It derives almost directly from
> >Gtk::Widget. I am probably just missing some minor thing to make the
> >example work.
> >
> >I'm not sure exactly what DrawingArea is for. Maybe it makes some things
> >easier. However, it is not used to implement the standard GTK+ widgets.
>
> Gtk::EventBox would be a much better starting point for a drawing
> widget. It doesn't actually draw anything, but unlike Gtk::Widget, it
> is guaranteed to have its own drawable (i.e. window). The canvas uses
> a Layout as a parent, and draws on its window, IIRC.
Still, GtkLabel doesn't need to do that, so I'd like to figure out what
I'm not doing that GtkLabel is doing.
--
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]