![]() |
AW: Form und Frame kommunikation
Oh super Danke, werde ich nachher gleich ausprobieren
|
AW: Form und Frame kommunikation
Zitat:
Eleganter ist es, dem Frame entweder passende Events oder eben von der Form aus den Zugriff auf die benötigten Teile zuzuweisen.
Delphi-Quellcode:
fraMyFrame = class( TFrame )
property FormEdit : TEdit; end; procedure fraMyFrame.Button1Click(Sender: TObject); begin if Assigned( FormEdit ) then FormEdit.Text := 'foo'; end; |
AW: Form und Frame kommunikation
Zitat:
Man könnte zwar den Owner verwenden, aber der kann ja auch sonstwo liegen. |
AW: Form und Frame kommunikation
@TE und Sir Rufo und himi: Siehe
![]() |
AW: Form und Frame kommunikation
So, es hat geklappt danke sehr.
Delphi-Quellcode:
Parent ging leider nicht, das es auf einem Panel liegt.
(Owner as TSecondForm).edSomeEdit.Text := 'foo';
|
AW: Form und Frame kommunikation
Dennoch würde ich nochmals auf #7, #8 und Dergleichen verweisen.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:19 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 by Thomas Breitkreuz