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 FindComponent Problem (https://www.delphipraxis.net/24103-findcomponent-problem.html)

orakel 15. Jun 2004 13:49


FindComponent Problem
 
Hi,
Ich habe eine Form und dort wird dynamisch ein Frame eingefügt.
Auf dem Frame ist z.B. ein Label: 'Label1'
Kann ich (von einem Button auf der Form aus) darauf mit FindComponent zugreifen?
Ich hab das schon so probiert:
Delphi-Quellcode:
FindComponent('Label1');
Aber da wird nur die Form und nicht der Frame mitdurchsucht.

Wie kann ich auch den Frame durchsuchen??

Meflin 15. Jun 2004 13:51

Re: FindComponent Problem
 
hi,
versuchs mal mit
Delphi-Quellcode:
with frame do begin
findcomponent...
end;

orakel 15. Jun 2004 13:53

Re: FindComponent Problem
 
Danke :dancer:


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