Autor Beitrag
daggit
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mo 27.02.06 23:55 
hi,

hab mal eine gaanz kleine frage an euch :).
Ich erstell mir mit folgemdem codeschnipsel ein Formular. Nach dem create ist das Formular allerdings schon sichtbar, was blöd ist wenn man noch weitere funktionen aufrufen möchte bevor onShow ausgeführt wird. Denk mal das es die beste möglichkeit die eigenschaft im Formular auf Hidden zu setzen. Imprinzip müsste man das denn ja für alle Formulare in der Anwendung machen oder gibbts da n besseren weg.

formXYZ := TForm2.create(FormABC);
formXYZ.Show;
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 28.02.06 08:07 
Du kannst ja das Ereignis TForm2.OnCreate eine Prozedur zuweisen und darin deine Vorbereitungen machen.
Tastaro
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 414
Erhaltene Danke: 23



BeitragVerfasst: Di 28.02.06 08:26 
Durch das create wird ein Formular normalerweise nicht sichtbar.
Erst show oder showmodal stellen es am Bildschirm dar.

Beste Grüße
Tastaro
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Di 28.02.06 09:56 
Hallo!

Die Eigenschaft Visible von TForm2 muss zur Entwurfszeit False sein.

Cu,
Udontknow