Autor Beitrag
delphi_noop
Hält's aus hier
Beiträge: 15

Win XP
Delphi 7
BeitragVerfasst: Mi 27.05.09 15:43 
Hallo zusammen!

hätte eine frage: wie schaffe ich es, dass ich zu beginn nicht form1 sondern eine andere form öffne?

Danke!


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mi 27.05.2009 um 17:08
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 27.05.09 15:47 
Dafür gibt es mehrere Möglichkeiten:
1. Du gehst in Projekt --> Optionen --> Formulare
Dann kannst du es direkt oben einstellen.
2. Du gehst auf Projekt --> Quelltext anzeigen
Dann kannst du im Quelltext einfach die Reihenfolge der Erstellung der Formulare ändern. Das zuerst mit Application.CreateForm erstellte Formular ist das Hauptformular.
3. Kannst du auch weitere Formulare mit dem Setzen von Visible auf True im Objektinspektor direkt beim Start mit anzeigen, so dass nicht nur das Hauptformular sichtbar ist.
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mi 27.05.09 15:48 
In den Projektoptionen kannst du das Standard-Formular ändern.
ffgorcky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 573

WIN XP/2000 & 7Prof (Familie:Win95,Win98)

BeitragVerfasst: Mi 27.05.09 16:16 
Zum Thema Standard-Formular setzen:
Wobei dann die Frage ist, ob Du denn das erste angezeigte Form wirklich als Dein Hauptform haben möchtest, was dann durch ein Schließen die gesamte Anwendung beendet...
Sonst könntest Du doch auch das Haupt-Form auf HauptForm.Visible:=false; setzen und stattdessen ein anderes Unterformular FormZurBegruessung.visible:=true; setzen.

PS:Die Form-Namen sind jetzt natürlich nur ausgedacht - Du kannst sie natürlich dem Verwendungszweck angepasst nennen.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 27.05.09 16:19 
user profile iconffgorcky hat folgendes geschrieben Zum zitierten Posting springen:
Sonst könntest Du doch auch das Haupt-Form auf HauptForm.Visible:=false; setzen und stattdessen ein anderes Unterformular FormZurBegruessung.visible:=True; setzen.
Du irrst dich, das klappt nicht, das Hauptformular wird immer angezeigt.

Für einen SplashScreen ist das Ändern des Hauptformulars auf den SplashScreen aber natürlich in der Tat nicht das richtige. Dazu gab es ja schon Beiträge und Anleitungen hier wie das geht.