On Friday 22 June 2018 21:34:01 fredvs wrote:
> >  I never understand why you do
>
> Huh, in my mind, a timer works like this:
>
> Interval is the time between 2 ontimer-method.
>
> I start the timer with mytimer.enabled := true;
>
> If I want only one ontimer-method then I use mytimer.enabled := false in
> the ontimer-method.
>
to_single is intended for the purpose.

> Also, in code I use:
>
> mytimer.enabled := false; // this to reset the interval of timer if he is
> already working,
> mytimer.enabled := true; // this to (re)start the timer.
>
> For example when resizing a form, a timer is started but if the one resize
> the form again before the end-interval of the timer, I want to restart the
> timer at beginning of interval.
>
ttimer.restart() is intended for the purpose.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to