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).
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.
destructor Destroy; virtual;
N
Destructor.
property OnTimer: TOnEvent;
Event, which is called when time interval is over.
[ Index ]
This help is generated 14-Jun-2010 by KOL Help generator, (C) 2000-2001 by Vladimir Kladov
Modified (C) 2003 by Alexander Bartov