Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Formular auf Anfangssituation zurücksetzen (https://www.delphipraxis.net/57096-formular-auf-anfangssituation-zuruecksetzen.html)

API 6. Feb 2011 18:26

AW: Formular auf Anfangssituation zurücksetzen
 
quick & dirty das Hauptformular zurücksetzen:

Delphi-Quellcode:
procedure TForm1.FormularZuruecksetzen(Sender: TObject);
var
  P : Pointer;
begin
  P := @Application.Mainform;
  Application.CreateForm(TForm1, Form1);
  Pointer(P^) := Form1;
  Free;
  Form1.Show;
end;

rollstuhlfahrer 6. Feb 2011 20:31

AW: Formular auf Anfangssituation zurücksetzen
 
funktioniert diese Zeile
Delphi-Quellcode:
Pointer(P^) := Form1;
denn überhaupt? - Ich denke nicht, dass es so einfach ist, eine nur-lesen Eigenschaft von TApplication so einfach zu beschreiben.

Bernhard

API 7. Feb 2011 16:30

AW: Formular auf Anfangssituation zurücksetzen
 
Zitat:

Zitat von rollstuhlfahrer (Beitrag 1079913)
funktioniert diese Zeile
Delphi-Quellcode:
Pointer(P^) := Form1;
denn überhaupt? - Ich denke nicht, dass es so einfach ist, eine nur-lesen Eigenschaft von TApplication so einfach zu beschreiben.

Bernhard

Mein Code habe ich zuvor getestet.


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:38 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz