Re: GnomeCanvas

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 : - 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

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

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