Here's how the "idle" methods work:
note that OnIdle is an event of TApplication, not TForm. So you must set it in the code.


[pascal]procedure TForm1.AppIdle(Sender: Tobject; var Done: Boolean);
begin
// do you dirty jobs here!
Done := False;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnIdle := AppIdle;
end;
[/pascal]