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



I've heard about GnomeCanvas, and that it's better
than a plain Gtk::DrawingArea, BUT isn't GnomeCanvas
platform dependant? It seems to me you can only use it
for Linux?

Ofcourse I could drop windows and OS X from being
supported, but... if there's any way of doing it in a
platform independant way?

Well, maybe I'll just drop this whole OpenGL, platform
independant timeline anyway, and do just a standard
Gnome-program, and hope that in the future my app can
be ported...


 --- Paul Davis <paul linuxaudiosystems com> wrote: >
>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


	
	
		
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html



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