On Jun 21, 2007, at 1:02 PM, Verena wrote: > I made my own fltk class, extending Widget, with a load of drawing > code in the "draw()" method. The instance of this class gets > redrawn many times a second, so I get some flickering, which I > would like to get rid of. > I noticed that there is a DoubleBufferWindow class, so that seems > like the natural thing to use. But just using that as a superclass > to my custom widget doesn't do the trick.
Just use the widget you created inside a DoubleWindow (...as a child of...). The DoubleWindow will take care of all buffering issues. Make sure that you draw only during the derived "draw()" call. Matthias ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

