Delphi-PRAXiS

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 Zugriff auf Frame von Klasse aus (https://www.delphipraxis.net/108829-zugriff-auf-frame-von-klasse-aus.html)

franktron 20. Feb 2008 08:30


Zugriff auf Frame von Klasse aus
 
Ich will von einer Klasse auf ein Frame zugreifen.

Delphi-Quellcode:
procedure TDM_AKONTO.LeseDaten(const Nr: Integer; c: TComponent);
begin
  c Ist Die Form auf der auch das Frame liegt
end;
Als Bsp. wie ich es früher gemacht habe

Delphi-Quellcode:
FieldByName('ort').Text:=FR_Ort1.Edit_ort.Text;
FieldByName('plz').Text:=FR_Ort1.Edit_plz.Text;
FieldByName('land').Text:=FR_Ort1.Edit_land.Text;
Nur wenn jetzt nicht die Form sondern nur TComponent übergeben wird kann ich ja nicht auf das Frame zugreifen oder geht das doch irgendwie.

Ich will nicht die Form als Param haben wenns geht hat einer irgendeine Idee ?

QuickAndDirty 20. Feb 2008 08:57

Re: Zugriff auf Frame von Klasse aus
 
Delphi-Quellcode:
if c is Tframe then
  Tframe(c).bla

franktron 20. Feb 2008 09:06

Re: Zugriff auf Frame von Klasse aus
 
Die Idee ist gut ich versuch das mal Danke schonmal


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:27 Uhr.

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