Re: [gtkmm] Drawing primitives on top of an image.



Giannis Georgalis wrote:
[snip]

Hello,
The reason for the "disappearance" of the lines is simple: you shoulkd do your draing in the expose handler. Gtk::Image has such a handler for expose events, in which case it will draw the exposed parts of the image.

As others have mentioned before me, use a Gtk::DrawingArea, and use the expose events to co-ordinate your drawing.

HTH,
Tassos




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