Re: How to refresh a drawing area widget



anil@iiit.net wrote:
> 
>         Changing the pictures on a drawing area widget leaves the traces
> of the pictures which are bigger than the new ones
> 

There isn't any buffering of the image done. You'll have to capture the
expose event and repaint it yourself. You can use a pixmap to act as
your 'canvas', which the drawing area then displays. IIRC there is a
scribble example that does this. 

Alternatively there is a more complete canvas widget in Gnome.

-- 

Rick L. Vinyard, Jr.





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