Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: So 01.06.03 18:53 
Hallo,

Ich habe ein Program mit einer Form2 für About oder Über das Programm. Ich will nun wenn man das Program startet das er zuerst die Form2 startet und nach dem wegklicken dann das Program.

Ich habe bei Form1.oncreate nun
ausblenden Delphi-Quelltext
1:
Form2.show;					

reingeschrieben. Es compiled zwar nur bricht das Programm mit einen Fehler sofort ab. Also wie kann ich eine andere Form vor Start von Form1 öffnen.

Danke.
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: So 01.06.03 18:56 
mach es in OnShow von Form1

benutz lieber ShowModal weil dann muss man das erst schließen um in Form1 weiterzuarbeiten

Falls doch Show dann mach Form2.FormStyle := fsStayOnTop

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.


Zuletzt bearbeitet von Tweafis am So 01.06.03 18:59, insgesamt 1-mal bearbeitet
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: So 01.06.03 18:56 
Hi!

Gehe zu

www.delphi-forum.de/search.php

Suche nach Splash.
Terra23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 872

Win 8
Delphi 7
BeitragVerfasst: So 01.06.03 18:57 
Schau dir mal diese FAQ von Tino an (diese). Er behandelt da den SplashScreen, aber ich denke, du mußt einfach nur ein wenig umschreiben und die Form2 vor allen anderen erzeugen und anzeigen. :-) Probier's mal..

_________________
Hasta La Victoria Siempre
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: So 01.06.03 19:20 
Mach einfach in FormShow von Form1
ausblenden Delphi-Quelltext
1:
Form2.ShowModal					

rein das reicht. Dann zeigt er erst das Form2 an und danach Form1.
Biarchiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Mo 02.06.03 11:53 
Hallo UGrohne,

danke das sieht gut aus. Ich habe es auch in der Showform mit Form2.show; probiert.

Ahh mit showmodal ..

Danke
Biarchiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Fr 13.06.03 10:17 
Hallo,

Also bei meinen Delphi3 Standard.

Es geht form2.show; Nur geht das Fenster dann hinten auf.
ausblenden Delphi-Quelltext
1:
form2.showmodal;					

geht leider nicht. Es kommt immer ein Fenster mit einen Fehler (Bei Show/Create keine solchen angaben). Ich habe mir gedacht das ich das Fenster mit
ausblenden Delphi-Quelltext
1:
form2.show					

erzeuge und dann mit einen Befehel sofort nach vor schicken kann.

Wie ginge das.

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Fr 13.06.03 10:24 
Das geht mit
ausblenden Delphi-Quelltext
1:
form1.bringtofront;