Delphi-Quellcode:
{ Private declarations }
procedure IdleEventHandler(Sender: TObject; var Done: Boolean);
// In der implementation Sektion:
Delphi-Quellcode:
procedure TForm1.IdleEventHandler(Sender: TObject;
var Done: Boolean);
begin
// ...
end;
// In der Forms OnCreate Methode
Application.OnIdle := IdleEventHandler;