[Overview][Types][Classes][Variables][Index] Reference for unit 'fptimer' (#fcl)

TFPTimer

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Timer class with published properties

Declaration

Source position: fptimer.pp line 92

type TFPTimer = class(TFPCustomTimer)

published

  property Enabled: Boolean;

  

Start or stop the timer

  property Interval: Cardinal;

  

Timer tick interval in milliseconds.

  property UseTimerThread: Boolean;

  

Indicates if a thread is used to execute the timer event

  property OnTimer: TNotifyEvent;

  

Event called on each timer tick.

  property OnStartTimer: TNotifyEvent;

  

Event handler signalled when the timer is started

  property OnStopTimer: TNotifyEvent;

  

Event handler signalled when the timer is stopped

end;

Inheritance

TFPTimer

  

Timer class with published properties

|

TFPCustomTimer

  

Custom timer class

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

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.

See also

TFPCustomTimer

  

Custom timer class

Enabled

  

Start or stop the timer

OnTimer

  

Event called on each timer tick.

Interval

  

Timer tick interval in milliseconds.


Documentation generated on: Jun 23 2021