Einzelnen Beitrag anzeigen

BerndS

Registriert seit: 8. Mär 2006
Ort: Jüterbog
480 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: VCL-Anwendung starten und Funktion ausführen

  Alt 15. Mär 2017, 13:12
Hallo,
ich mache das so:

Delphi-Quellcode:
...
Application.CreateForm(TMyForm, MyForm);
Application.OnIdle := MyForm.FirstAction;
Application.Run;
und dann

Delphi-Quellcode:
procedure TMyForm.FirstAction;
begin
  Application.OnIdle := nil;
  ...
end;
Bernd
  Mit Zitat antworten Zitat