How to Stop Your Program For a Period of Time

Posted December 15th @ 9:32 pm by m3Rlin

This procedure will let your programs process Windows messages. The only thing is that this function may stop only this procedure while not stopping the rest

var
dtNow: TDateTime;
begin
{ Before pause }
dtNow := Now;
repeat
Application.ProcessMessages; { Process Windows messages }
until dtNow + [...]

How to Stop Your Program for a Period of Time

Posted December 15th @ 6:52 pm by m3Rlin

The easiest way to stop execution of your program is to use the Windows API Sleep() function. The function stops the program for n milliseconds. The only problem is that this function does not properly support multitasking, so during this time your program will not process any Windows messages, so you may want to check [...]

« Previous Entries