Sign in Join
FPDoc Onlineexperiment

TCustomTimer.Interval property

Member of TCustomTimerpublicIn unit CustomTimer

The Interval (in milliseconds) for timer notifications.

Declaration

pascal
property Interval: Cardinal read FInterval write SetInterval default 1000;

Description

Interval is a Cardinal property which indicates the frequency (in milliseconds) for OnTimer event notifications during timer execution. The default value for the property is 1000 milliseconds (or 1 second).

Changing the value in Interval causes the UpdateTimer method to be called to update the values for properties in the timer class instance. Setting the value in Interval to 0 (zero) prevents the timer from allocating it handle and performing the OnStartTimer event handler when Enabled is changed to True.

Use Enabled to indicate if the timer can be executed.

Use the OnStartTimer, OnStopTimer, and OnTimer event handlers to perform actions needed for the corresponding execution states in the timer class instance.

See also

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