Re: [gtkmm] Is it possible to add widgets to a drawingarea?



>The question:
>So is it possible to have a drawingarea, and put some
>Gtk::Buttons in there with just giving them
>coordinates x,y of where they should be drawn? And if
>that's possible somehow, then is there a way to make
>that button be customly drawn?

no. that would be a Gtk::Layout. but even so, its not the right way to
do this.

use the GnomeCanvas. its custom made for this sort of work. most NLE's
use a similar widget. you get transparency, z-order stacking, plus
quite a few other goodies.

check ardour.org/ for an audio editor in which the GnomeCanvas (well,
actually right now an early version called GtkCanvas) is the center of
the action.

otoh, in 2-3 years or less, seems like all of GTK will work the way
the Canvas does today, so ...

--p



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