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 MDI, aktives fenster rausbekommen. (https://www.delphipraxis.net/75548-mdi-aktives-fenster-rausbekommen.html)

bernau 22. Aug 2006 10:31

Re: MDI, aktives fenster rausbekommen.
 
Zitat:

Zitat von jeroen_a
ok bring mich irgendwoei nicht weiter.

ich bin bisher bis:
Delphi-Quellcode:
MainForm.MDIChildren[i].Caption := 'hallo';
gekommen.

Sprich aufs MDiChild kann ich zugreifen. Aber nicht auf die Komponenten auf ihm.

jeroen


Blätter mal etwas nach oben. Dort steht es und du hast es ja schon selber probiert ;-)

Hier ist wieder Typecasting gefragt.

Delphi-Quellcode:
if ActiveMdiChild is TMDIChild then
  TMDIChild(MainForm.MDIChildren[i]).Label1.Caption := 'hallo';

Gerd

jeroen_a 22. Aug 2006 13:03

Re: MDI, aktives fenster rausbekommen.
 
ok,

nur noch ne letzte frage wie, wie bekomm ich die Nr des ActiveMDIChild raus ?

jeroen

Muetze1 22. Aug 2006 13:17

Re: MDI, aktives fenster rausbekommen.
 
Suche in MDIChildren[] nach ActiveMDIChild...


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