endTimer

endTimer(eventTag: Integer);

The endTimer method of the Object class terminates a timer that was started and registered by using the beginTimer method for the corresponding parameter. Use the eventTag parameter to distinguish between a number of different timers. The following example shows the use of the endTimer method.

dblClick() updating;
begin
    if self.timerInProgress then
        self.endTimer(0);
    else
        self.beginTimer(2000, 0, 0);
    endif;
    self.timerInProgress := not self.timerInProgress;
end;