TTimer.OnTimer property
Event handler signalled when the Interval for the timer has elapsed.
Declaration
property OnTimer:;Description
OnTimer is a
TNotifyEvent property that implements the
event handler signalled when the
Interval for the timer has
elapsed. The default value for the property is
Nil as assigned in the
constructor for the class instance.
Assign a TNotifyEvent procedure to the event handler to perform
actions needed for the event notification. Setting the value in OnTimer
causes the UpdateTimer method to be called to reflect the current values for
the timer class instance.
OnTimer is not signalled during timer execution
when Interval contains the value 0 (zero).
Use the OnStartTimer event handler to perform actions required
when the timer is started by setting Enabled to True.
Use the OnStopTimer event handler to perform actions needed when
the timer is halted by setting Enabled to False, or when
calling the destructor for an executing timer class instance.
This description is the one of CustomTimer.TCustomTimer.OnTimer.
See also
- Interval
- Enabled
- OnStartTimer
- OnStopTimer
- UpdateTimer
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
