[Overview][Classes][Index] Reference for unit 'CustomTimer' (#lcl)

TCustomTimer.Interval

The Interval (in milliseconds) for timer notifications.

Declaration

Source position: customtimer.pas line 52

public property TCustomTimer.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

TCustomTimer.Enabled

  

Indicates if the timer is ready to start.

TCustomTimer.UpdateTimer

  

Updates the Timer to reflect the current properties.

TCustomTimer.OnStartTimer

  

Event handler signalled when the timer is started.

TCustomTimer.OnStopTimer

  

OnStopTimer - event handler for stopping the timer.

TCustomTimer.OnTimer

  

Event handler signalled when the Interval for the timer has elapsed.


Version 4.0 Generated 2025-05-03 Home