Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Mainform verstecken (https://www.delphipraxis.net/26907-mainform-verstecken.html)

Int3g3r 28. Jun 2019 12:30

AW: Mainform verstecken
 
Vielen Dank für die Beispiele.

Es funktioniert nun.
Delphi-Quellcode:
// Projekt -> Quelltext Anzeigen (.dpr file)
begin
   Application.Initialize;
   Application.Title := 'FTP';
   Application.CreateForm(TformFTP, formFTP);
   if ParamCount > 0 then
      begin
         Application.ShowMainForm := false;
         formFTP.parameterStart;
         formFTP.Close;
      end
      else
      begin
         Application.Run;
      end;
end.

Delphi.Narium 28. Jun 2019 12:41

AW: Mainform verstecken
 
Zitat:

Zitat von Int3g3r (Beitrag 1435553)
Vielen Dank für die Beispiele.

Es funktioniert nun.
Delphi-Quellcode:
// Projekt -> Quelltext Anzeigen (.dpr file)
begin
   Application.Initialize;
   Application.Title := 'FTP';
   Application.CreateForm(TformFTP, formFTP);
   if ParamCount > 0 then
      begin
         Application.ShowMainForm := false;
         formFTP.parameterStart;
         formFTP.Close;
      end;
   Application.Run;
end.

Bitte anpassen:
Delphi-Quellcode:
// Projekt -> Quelltext Anzeigen (.dpr file)
begin
  Application.Initialize;
  Application.Title := 'FTP';
  Application.CreateForm(TformFTP, formFTP);
  if ParamCount > 0 then
  begin
    Application.ShowMainForm := false;
    formFTP.parameterStart;
    formFTP.Close;
  end else begin
    Application.Run; // Das muss nur ausgeführt werden,
                     // wenn kein Parameter übergeben wurde,
                     // aber bei einer Parameterübergabe bestimmt
                     // nicht mehr nach dem Schließen des Hauptformulares.
                     // Auch dann nicht, wenn es vielleicht so funktionieren mag.
  end;
end.

Int3g3r 28. Jun 2019 14:31

AW: Mainform verstecken
 
Danke für die Info. Ist nun angepasst.


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:23 Uhr.
Seite 3 von 3     123   

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