Re: Draw a line & erase it



>I want to know how can I do if after I draw a line, and an event
>ocurres, the line will be erase.
>there's my code to draw a line.

you should ONLY draw in an expose event handler. nowhere else, ever. (unless
the drawable is offscreen (e.g. a pixmap)). search the archives for
discussions of this if you are confused. look for "expose event".




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