> Sure, I've done this before - though it may depend on how exactly your code= > is currently structured... > > All I do is gather the mouse wheel events in the handle method for the widg= > et, which I assume you must be doing, but I do not trigger a redraw for eve= > ry event, rather I accumulate the movement events into a running total in t= > he handler. > > The actual redraw I trigger from an fl_timeout so that I get a reasonably c= > onstant frame rate - when the timeout fires, it looks to see if any mouse w= > heel stuff has happened, and if so it clears the accumulator down to zero a= > gain and triggers the appropriate redraw. > > That may not fit too well with your current scheme though, perhaps, but it = > works well for me. A frame rate of about 20Hz seems to be fine for most cas= > es (though for really complex scenes I don't quite make that anyway...!) > > Hope that helps... > -- = > > Ian >
That sounds like a good idea. I did not know about the fl_timeout mechanism. I will look into that. Thanks for the prompt reply! Juerg _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

