TTimer( unit KOL.pas ) ï TObj ï _TObj

TTimer = object( TObj )

Easy timer incapsulation object. It uses separate topmost window, common for all timers in the application, to handle WM_TIMER message. This allows using timers in non-windowed application (but anyway it should contain message handling loop for a thread).
Note: in UNIX, there are no special windows created, certainly.

TTimer properties

property Handle: Integer;    Ñ   
Windows timer object handle.

property Enabled: Boolean;
True, is timer is on. Initially, always False.

property Interval: Integer;
Interval in milliseconds (1000 is default and means 1 second). Note: in UNIX, if an Interval can be set to a value large then 30 minutes, add a conditional definition SUPPORT_LONG_TIMER to the project options.

Properties, inherited from TObj

TTimer methods

destructor Destroy; virtual;    N   
Destructor.

Methods, inherited from TObj

TTimer events

property OnTimer: TOnEvent;
Event, which is called when time interval is over.

Events, inherited from TObj

TTimer fields

Fields, inherited from TObj


Index ]

This help is generated 14-Jun-2010 by KOL Help generator, (C) 2000-2001 by Vladimir Kladov
Modified (C) 2003 by Alexander Bartov