Re: GtkDrawingArea...



On 03/28/01 Arjan J. Molenaar wrote:
> > I`m trying to switch from Perl-Tk to Perk-Gtk because
> > Gtk has a lot more advantages in this case. I got only
> > one problem and alas I did not find a sample program 
> > which helps me.
> > 
> > I`m trying to setup a Gtk::DrawingArea which should
> > contain several pixmaps to be selected with the mouse
> > and dragged within the drawing area. I also need to 
> > get the new position of the dragged pixmaps.
> > 
> > Any ideas, docu, samples... :-)
> 
> Hi,
> 
> Isn't it just a better idea to use the GnomeCanvas for that. I think
> it will have many advantages over using the drawingarea, for example
> event handling.

Yep, using Gnome::Canvas is the best way to do it: it does
all the event handling and flicker-free redrawing for you.

> BTW there are Perl bindings for Gnome, isn't it?

Yep, and for a long time. I just released a new version on CPAN:

http://www.cpan.org/authors/id/L/LU/LUPUS/Gtk-Perl-0.7006.tar.gz

BTW, there is a mailing list dedicated to gtk-perl:

http://mail.gnome.org/mailman/listinfo/gtk-perl-list

lupus

-- 
-----------------------------------------------------------------
lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better




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