Alvin wrote:
> The only reason I
> went with add_timeout() was that it does not require it to be explicitly
> removed once it is done.
BTW, in the code I posted recently, I added a call to remove_timeout()
in the timer's callback.
I've always done this because my reading of the docs don't explicitly
say remove_timeout() doesn't need to be called, and due to the
existence of 'repeat_timeout()', it seemed to imply FLTK keeps
track of the first timeout for repeat_timeout() to use, which meant
to me that one should call remove_timeout() if repeat isn't going
to be used.
I'm not actually sure of this, haven't looked in the code to see
what's going on.
Docs should on add_timeout() should maybe clarify if remove_timeout()
should be called in the callback if repeat_timeout() isn't going to be
used.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk