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

TFPCustomTimer

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

Custom timer class

Declaration

Source position: fptimer.pp line 40

type TFPCustomTimer = class(TComponent)

protected

  property Continue: Boolean; [rw]

  procedure Timer; virtual;

  function CreateTimerDriver;

public

  constructor Create(); override;

  

Create a new timer

  destructor Destroy; override;

  

Release a timer instance from memory

  procedure StartTimer; virtual;

  

Start the timer

  procedure StopTimer; virtual;

  

Stop the timer

protected

  property Enabled: Boolean; [rw]

  property Interval: Integer; [rw]

  property OnTimer: TNotifyEvent; [rw]

end;

Inheritance

TFPCustomTimer

  

Custom timer class

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

Description

TFPCustomTimer is the timer class containing the timer's implementation. It relies on an extra driver instance (of type TFPTimerDriver) to do the actual work.

TFPCustomTimer publishes no events or properties, so it is unsuitable for handling in an IDE. The TFPTimer descendent class publishes all needed events of TFPCustomTimer.

See also

TFPTimerDriver

  

Abstract driver class

TFPTimer

  

Timer class with published properties

The latest version of this document can be found at lazarus-ccr.sourceforge.net.