![]() |
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:
Du könntest nun den Code vor das Application.Run schreiben:
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2); //evtl. mehr Application.Run;
Delphi-Quellcode:
Beachte aber, dass du dann in der dpr-Datei die unit IniFiles hinzufügen und auch noch alles initialisieren musst.
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; Greetz alcaeus |
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. |
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