Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Library: Object-Pascal / Delphi-Language (https://www.delphipraxis.net/35-library-object-pascal-delphi-language/)
-   -   Delphi Anwendung pausieren lassen ohne sie einzufrieren (https://www.delphipraxis.net/2637-anwendung-pausieren-lassen-ohne-sie-einzufrieren.html)

Luckie 30. Jan 2003 23:48


Anwendung pausieren lassen ohne sie einzufrieren
 
Delphi-Quellcode:
procedure TForm1.Delay(msecs:integer);
var
  FirstTickCount:longint;
begin
  FirstTickCount:=GetTickCount;
  repeat
    Application.ProcessMessages; {allowing access to other controls, etc.} 
  until ((GetTickCount-FirstTickCount) >= Longint(msecs));
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:13 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz