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 Panel ComponentCount ergibt 0 obwohl Panels drauf sind... (https://www.delphipraxis.net/127347-panel-componentcount-ergibt-0-obwohl-panels-drauf-sind.html)

Andreas L. 11. Jan 2009 20:02


Panel ComponentCount ergibt 0 obwohl Panels drauf sind...
 
Abend,

ich hab ein Panel (pnlContainer) auf welchen sich 2 weitere Panels befinden. ComponentCount von pnlContainer ergibt aber 0. Warum?

Ciao,
Andy

Bernhard Geyer 11. Jan 2009 20:04

Re: Panel ComponentCount ergibt 0 obwohl Panels drauf sind..
 
Verwende Controls/ControlCount wenn du visuellen Child-Elemente eines visuellen Controlls wissen willst. Components/Componentcount liefert "nur" die per Owner zugewissenen Komponenten. Bei Formularen ist diese i.d.R. das Forumlar.

Andreas L. 11. Jan 2009 20:09

Re: Panel ComponentCount ergibt 0 obwohl Panels drauf sind..
 
Hmm. Da sollte in der Delphi-Hilfe bei ComponentCount schon ein Verweis auf ControlCount stehen. Naja, jetzt weiß ichs ja. Vielen Dank und einen schönen Abend. :-D


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