i have a custom component that at design time can create a child component like this :
constructor TALRectangle.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
fShadow := TalShadow.Create;
fShadow.OnChanged := ShadowChanged;
end;
procedure TALRectangle.ShadowChanged(Sender: TObject);
begin
...
if shadow.enabled then begin
fShadowEffect := TshadowEffect.Create(self);
fShadowEffect.Parent := self;
end;
...
end;
The problem is that I will have after in the dfm/fmx form :
object ALRectangle1: TALRectangle
shadow.enabled = True
object TShadowEffect
Softness = 0.500000000000000000
Opacity = 1.000000000000000000
ShadowColor = x96000000
end
end
but I don't want to anything regarding TShadowEffect in the dfm/fmx form as i create and init this object on the fly.
how to do ?