Autor Beitrag
bwolf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50



BeitragVerfasst: Fr 10.03.06 13:21 
Hi all,

ich hab in meiner Applikation einige Frames. Auf diesen Frames befinden sich Panels, auf diesen Panels wiederum GroupBoxes.

Mein Problem: Wenn ich die Anzahl der Komponenten mit
pnl_myPanel.ComponentCount
zählen möchte, bekomme ich immer eine 0.

Gibts dafür eine Erklärung?
Danke & Grüße,
ben
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 11.03.06 15:52 
Ich hab nur rausgefunden, dass die Komponenten vom Form gezählt werden, obwohl der Parent das Panel ist. Das verwundert mich jetzt auch etwas.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)