Autor Beitrag
Leathl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 28.03.03 17:12 
---


Zuletzt bearbeitet von Leathl am Sa 15.08.09 16:56, insgesamt 1-mal bearbeitet
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Fr 28.03.03 17:18 
Weil das Hauptformular geschlossen wird.
Mach aus Form1.Close einfahc ein Form1.Hide;
Leathl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 28.03.03 17:28 
---


Zuletzt bearbeitet von Leathl am Sa 15.08.09 16:56, insgesamt 1-mal bearbeitet
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 28.03.03 18:36 
wenn ich das richtig verstehe, hast du jetzt in Form1
ausblenden Quelltext
1:
2:
form1.hide;
form2.showmodal

und in Form2 ein
ausblenden Quelltext
1:
form2.close					

drin.
Das heisst, du versteckst form1, zeigst form2 und schliesst form2 dann. Das Hauptformular bleibt dann versteckt, die Anwendung müßte aber dennoch weiterlaufen, nur eben nicht auf Anhieb sichtbar. D.h. ich würde da auch ein
ausblenden Quelltext
1:
2:
3:
 
form2.hide;
form1.show;

einfuegen.

-----
Wenn du das Hauptformular neu initialisieren willst, dann mach doch das, was bei OnCreate passiert, auch in OnShow oder OnActivate. Das sollte dann funktionieren.

_________________
We are, we were and will not be.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 28.03.03 18:51 
Leathl hat folgendes geschrieben:
hide ist aber sche****, da ich es nochmal später von neuem benutzen will

Und warum willst du es dann mit close schließen? :roll:
Leathl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Sa 29.03.03 02:47 
---


Zuletzt bearbeitet von Leathl am Sa 15.08.09 16:57, insgesamt 1-mal bearbeitet
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 29.03.03 03:24 
Leathl hat folgendes geschrieben:
naja, da sich der zustand von form1 ja auch ändert, bevor man den button klickt und deshalb will ich es closen und wiederrufen, damit es im ausgangszust. ist...

Du verlangst aber jetzt nicht von mir, dass ich das verstehe oder? :shock: