Skip to content

TFPTimer

Timer class with published properties.

Declaration

Source position: fptimer.pp line 99

type

  TFPTimer = class(TFPCustomTimer)
  published
    property Enabled;
    property Interval;
    property UseTimerThread;
    property OnTimer;
    property OnStartTimer;
    property OnStopTimer;
  end;

Description

TFPTimer implements no new events or properties, but merely publishes events and properties already implemented in TFPCustomTimer: Enabled, OnTimer and Interval.

The TFPTimer class is suitable for use in an IDE.

Properties

Member Visibility Description
Enabled read only published Start or stop the timer.
Interval read only published Timer tick interval in milliseconds.
UseTimerThread read only published Indicates if a thread is used to execute the timer event.
See all Properties

Events

Member Visibility Description
OnStartTimer read only published Event handler signalled when the timer is started.
OnStopTimer read only published Event handler signalled when the timer is stopped.
OnTimer read only published Event called on each timer tick.
See all Events

See also

Name Description
TFPCustomTimer Custom timer class.
Enabled Start or stop the timer.
OnTimer Event called on each timer tick.
Interval Timer tick interval in milliseconds.