Sign in Join
FPDoc Onlineexperiment

TCustomTimer class

In unit CustomTimer

Defines the base class for TTimer.

Declaration

pascal
TCustomTimer = class(TComponent)

Inheritance

  1. TCustomTimer
  2. TComponent
  3. TPersistent
  4. TObject

Descends from it: TCustomIdleTimer TTimer

Description

TCustomTimer is a TComponent descendant which specifies the base class for TTimer. TCustomTimer specifies the properties, methods, and events handlers used for timer classes in the LCL.

Use the Enabled property to indicate if the timer can be executed.

Use the Interval property to control the frequency of notification events from the executing timer class instance.

Use the OnTimer, OnStartTimer, and OnStopTimer event handlers to perform actions needed for the corresponding execution state in the timer class instance.

Do not create instances of TCustomTimer; use the TTimer descendant class in the ExtCtrls.pp unit.

See also

Properties

EnabledpublicIndicates if the timer is ready to start.
IntervalpublicThe Interval (in milliseconds) for timer notifications.

Methods

SetEnabledprotectedSets the value for the Enabled property.
SetIntervalprotectedSets the value for the Interval property.
SetOnTimerprotectedSets the event handler for the OnTimer property.
DoOnTimerprotectedDoOnTimer signals the OnTimer event handler.
UpdateTimerprotectedUpdates the Timer to reflect the current properties.
KillTimerprotectedStops execution of the timer class instance.
LoadedprotectedPerforms actions needed when LCL component streaming has been completed.
CreatepublicCreate - constructor for TCustomTimer: calls inherited Create, sets up handle and initializes timer interval.
DestroypublicDestructor for the timer class instance.

Events

OnTimerpublicEvent handler signalled when the Interval for the timer has elapsed.
OnStartTimerpublicEvent handler signalled when the timer is started.
OnStopTimerpublicOnStopTimer - event handler for stopping the timer.

Inherited

From TComponent (73)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.