As a part of the DelphiVCL Windows UI Toolkit the DelphiVCL.Timer or TTimer is used to encapsulate 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.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Timer using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Timer) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Timer using the print() command:
1 2 |
print(DelphiVCL.Timer) print(DelphiVCL.Timer.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.