SetTimer function
Creates or resets an timer for the given time interval.
Declaration
function SetTimer(Wnd: HWND; nIDEvent: UINT_PTR; uElapse: UINT;
lpTimerFunc: TTimerProc): UINT_PTRDescription
Every timer has a unique ID, which is reported in the timer message and can be used to reset or kill the timer.
When the time has elapsed, the callback procedure is invoked. If no procedure is given, a WM_TIMER message is sent to the window. If also no window is given, the function fails.
When the timer already exists, it is reset to the new interval.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
