Vcl.ExtCtrls.TTimer

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTTimer

Delphi

TTimer = class(TComponent)

C++

class PASCALIMPLEMENTATION TTimer : public System::Classes::TComponent

Properties

Type Visibility Source Unit Parent
class public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls Vcl.ExtCtrls

Description

TTimer encapsulates the Windows API timer functions.

TTimer is used to simplify calling the Windows API timer functions SetTimer and KillTimer, and to simplify processing the WM_TIMER messages. Use one timer component for each timer in the application.

The execution of the timer occurs through its OnTimer event. TTimer has an Interval property that determines how often the timer's OnTimer event occurs. The interval corresponds to the parameter for the Windows API SetTimer function.

Warning: Limitations on the total number of timers system-wide are system-dependent.

See Also