On 25 Jan 2008, at 15:46, pushparaj muthu wrote: > I have drawn image on the screen by using mouse events ( like > paint program > ) > > How to clear screen or window . I did n't find API for this.
You don't need an API to do this. Simply draw a filled rectangle of your background colour. However, that shouldn't even be necessary if you are handling drawing correctly in your draw() method. It might help if you showed us a minimal example of your program: I suspect (guessing from your recent postings) that you are using the fltk drawing functions in the "Wrong Way" and are drawing directly to the screen inside your event handling, rather than (only) when in the widgets draw() method (or, worse, that you might be calling the draw method directly.) Both these styles of usage are basically unsupported and violate the intent of the fltk design. So whilst your program might work on your machine with your graphics card, you might find it behaves very differently on another... Of course, I could be wrong, and your program might be perfectly good! -- Ian _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

