Sign in Join
FPDoc Onlineexperiment

TCustomTimer.Destroy destructor

Member of TCustomTimerpublicIn unit CustomTimer

Destructor for the timer class instance.

Declaration

pascal
destructor Destroy; override

Description

Destroy is the overridden destructor for the class instance. Destroy ensures that the OnTimer event handler is unassigned and Enabled is set to False before halting the timer by calling the KillTimer method.

Destroy calls the inherited destructor prior to exiting from the method.

Use the OnStopTimer event handler to perform actions needed when the timer is disabled or freed.

See also

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