ich glaub da ist es einfacher, von Form.ActiveControl auszugehn und die Parents abzufragen
Delphi-Quellcode:
var C: TComponent;
C := ActiveControl;
while Assigned(C) do begin
if C is TYourContainerClass then hervorheben(C);
C := C.Parent;
end;
Ein Therapeut entspricht 1024 Gigapeut.