Sign in Join
FPDoc Onlineexperiment

TCustomTimer.OnStartTimer property

Member of TCustomTimerpublicIn unit CustomTimer

Event handler signalled when the timer is started.

Declaration

pascal
property OnStartTimer: TNotifyEvent read FOnStartTimer write FOnStartTimer;

Description

OnStartTimer is a TNotifyEvent property that implements the event handler signalled when the timer class instance is started. Assign a TNotifyEvent procedure to the event handler to perform actions needed to reflect the change in the timer state. No actions are performed for the event notification when OnStartTimer is unassigned (contains Nil).

OnStartTimer is signalled from the UpdateTimer method when the value in the Enabled property is changed to True.

Please note that OnStartTimer is not signalled when Interval contains the value 0 (zero).

Use the OnStopTimer event handler to perform actions needed when the timer class instance is stopped (or freed during execution).

Use the OnTimer event handler to perform actions needed when the Interval for the timer has elapsed.

See also

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