Re: GnomeCanvas



Wait a minute. I thought the GnomeCanvas had double-buffering and all
that built-in, so that it took care of redrawing and stuff. In fact, I
know it does that because I use it in one of my projects. Are you sure
you are using a GnomeCanvas and not a DrawingArea?

	= Loban

On 31 Jul 2001 15:38:51 +0200, Jean-Christophe Berthon wrote:
> The drawings are deleting each time you are moving an object over them. To
> avoid the problem you have to connect your object (GnomeCanvas) to the
> expose event. In this event you should be able to get the area which has
> been destroyed, so you can redraw there what should be.
> (there is a small example here :
> http://www.editions-eyrolles.com/livres/odin/ - just download the zip file
> (click on the link "fichier zip" - fichier stands for file...) And have a
> look at the file DrawningArea.c in directory Chapitre17 (once you unzip the
> file).
> 
> Hope this help,
> 
> 
> Best regards,
> ---
> Jean-Christophe Berthon
> 
> 
> 
> ----- Original Message -----
> From: "Karina Foroutan" <foroutan uol com br>
> To: <gtk-list gnome org>
> Sent: Tuesday, July 31, 2001 3:19 PM
> Subject: GnomeCanvas
> 
> 
> > I'm using GnomeCanvas widget to make drawings with the help of the
> > mouse, but every time I change window or move the toolbar, the drawings
> > are destroyed. What can I do?
> >
> > Thanks
> >
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
--
/-------------------------------------------------------------------\
|   Loban Amaan Rahman  <-- anagram of -->  Aha! An Abnormal Man!   |
|  loban earthling net, loban ugcs caltech edu,  http://i.am/loban  |
\-------------------------------------------------------------------/




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