How can I prevent duplication of sub components in Firemonkey compound component?
问题 I am trying to write a compound component which is derived from TDummy. The component source is: TMyObjectType=(otCube,otSphere); TMyGameObject=class(TDummy) private FObj:TCustomMesh; FMyObjectType: TMyObjectType; procedure SetMyObjectType(const Value: TMyObjectType); public constructor Create(AOwner:TComponent);override; destructor Destroy;override; property MyObjectType:TMyObjectType read FMyObjectType write SetMyObjectType; end; { TMyGameObject } constructor TMyGameObject.Create(AOwner: