RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTimer Class

TTimer encapsulates the Windows API timer functions.

Pascal
[RootDesignerSerializerAttribute('', '', False)]
TTimer = class(TComponent);
C++
[RootDesignerSerializerAttribute('', '', False)]
class TTimer : public TComponent;

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. Interval corresponds to the parameter for the Windows API SetTimer function.

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!