Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Zugriff auf das andere Formular nicht möglich - warum? (https://www.delphipraxis.net/35741-zugriff-auf-das-andere-formular-nicht-moeglich-warum.html)

alcaeus 12. Dez 2004 22:18

Re: Zugriff auf das andere Formular nicht möglich - warum?
 
Hi DymonD,

eine weitere Möglichkeit ist es, den Code der dpr-Datei zu manipulieren und dort alles zu setzen. Normalerweise sieht der Code ja so aus:
Delphi-Quellcode:
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
//evtl. mehr
Application.Run;
Du könntest nun den Code vor das Application.Run schreiben:
Delphi-Quellcode:
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
//evtl. mehr
Form1.Edit1.Text := ini.ReadString('Main', 'Nickname', '');
Form2.StatusBar1.Items[1].Text := Einstellungen.Edit1.Text;
Application.Run;
Beachte aber, dass du dann in der dpr-Datei die unit IniFiles hinzufügen und auch noch alles initialisieren musst.

Greetz
alcaeus

DymonD 13. Dez 2004 21:39

Re: Zugriff auf das andere Formular nicht möglich - warum?
 
Hi,
ja, so kann ich das auch machen.. dann weiß ich immer, wo meine Einstellungen sind :lol:


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:37 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