Sign in Join
FPDoc Onlineexperiment

TCustomTimer.DoOnTimer procedure

Member of TCustomTimerprotectedIn unit CustomTimer

DoOnTimer signals the OnTimer event handler.

Declaration

pascal
procedure DoOnTimer; virtual

Description

DoOnTimer is a protected virtual procedure used to signal the OnTimer event handler (when assigned). No actions are performed in DoOnTimer when OnTimer has not been assigned (contains Nil).

DoOnTimer is called from the Timer method when Enabled contains True and Interval contains a value greater than 0 ( zero).

Assign a procedure to OnTimer to perform the actions required when the Interval for the timer has elapsed.

Set the value in Interval to control the frequency of timer event notifications.

Set Enabled to False to prevent execution of the timer.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.