On 21 Jun 2011, at 17:45, Vincent Beffara wrote: > > My question is, in my typical programs (physics simulations), > interactivity is extremely limited, essentially I want to treat the > window as a canvas on which I am drawing, possibly displaying the values > of a few relevant parameters in Fl_Output's, and which updates itself on > screen every 50 ms or so. I am calling redraw() by hand for > that. Somehow it feels like using FLTK backwards ... what would be the > least awkward to do it ?
You may have to expand your description, just in case I am misunderstanding what you are trying to do. However, I think what you are asking is how to trigger a redraw of your window every 50ms or so. For that, I would use Fl::add_timeout() to trigger a callback which would call redraw on your window. Greg has a few examples of doing this sort of thing: http://seriss.com/people/erco/fltk/#Animate See if that is what you are wanting to do. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

