On Mar 17, 2007, at 11:54 PM, Maximilian Matthé wrote:

> In my program i have a while-loop where I change the content of an own
> widget. I want to redraw the widget after every change of its content:

Call Fl::flush() after redraw().

Note however that this will slow down your loop considerably. Screen  
drawing is expensive. Depending what your loop does, it is usually  
better to do those calculations in a separate thread and use the  
Fl::awake() mechanism, or use a timer to slice very long operations  
into shorter execution units, preferably around 10ms... .

Matthias

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to