Delphi-Quellcode:
TMyObject = class(TObject)
private
FTest : integer;
published
property Test : integer read FTest write FTest;
end;
TMyComp = class(TComponent)
private
FObjekt : TMyObject;
protected
public
constructor Create(AOwner : TComponent);override;
published
property Objekt : TMyObject read FObject write FObject;
end;
constructor TMyComp.Create(AOwner : TComponent);
begin
inherited Create(AOwner);
FObjekt:=TMyObject.Create;
end;
iss jetz nur en simples beispiel un ausm Kopf raus...