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

TCustomTimer.OnStartTimer

Event handler signalled when the timer is started.

Declaration

Source position: customtimer.pas line 54

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

Remark: 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

TCustomTimer.Interval

  

The Interval (in milliseconds) for timer notifications.

TCustomTimer.Enabled

  

Indicates if the timer is ready to start.

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