Hallo IGotcha,
versuch mal die Komponenten hiermit zu finden:
Delphi-Quellcode:
function AdvFindComponent(ParentC: TComponent; const AName: string): TComponent;
var
i: Integer;
begin
Result := nil;
if (ParentC <> nil) and (AName <> '') then
for i := 0 to ParentC.Count - 1 do
begin
if AName = ParentC.Components[i].Name then begin
Result := ParentC.Components[I];
end
else if (ParentC.Components[i] is TGroupBox) or (ParentC.Components[i] is TPanel) {or ...} then
Result := AdvFindComponent(ParentC.Components[i], AName);
if Result <> nil then
Exit;
end;
end;
Nicht getestet, sollte aber funktionieren.
Greetz
alcaeus