Autor Beitrag
Tendl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Fr 16.01.04 13:58 
Wie finde ich die Komponenten die die ich zur Designtime auf einem Panel
angeordnet habe während des Programmlaufs?

Danke
Thomas
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Fr 16.01.04 14:02 
Hi,

mit TPanel.FindComponent. In der Delphi-Hilfe gibts ein Beispiel zu FindComponent.

MFG

- Ernesto -
Tendl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Fr 16.01.04 14:43 
Danke für die schnelle Antwort, leider trifft sie nicht ganz das Problem, da mir die Namen der Komponenten nicht bekannt sind.

Ich suche aus einer Komponente heraus über self.owner zurück bis ich bei Form lande, dann suche ich Komponenten in dieser Form und finde z.B
ein Panel. Jetzt interessiert mich ob sich auf diesem Panel z.B ein weiteres Panel oder eine Scrollbox befindet. Die Komponente von der diese Suche ausgeht kennt natürlich die Namen der gesuchten Komponenten nicht.

Weißt Du da auch weiter?
Danke
Thomas
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 16.01.04 14:50 
Hallo,

gugg dir mal die Eigenschaften controlcount und controls des panels an. da ist auch ein Beispiel in der OH (für eine Groupbox) mit einer is-Abfrage kannst du prüfen, welcher Typ ein control-item ist.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Tendl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Fr 16.01.04 15:29 
Danke, genau das hat gepasst.

Thomas