在设计时在“结构”视图面板中隐藏子组件

时间:2020-07-05 09:59:56

标签: delphi components

我指的是这些

How to hide subcomponents in design time

How to disable child controls at design-time?

尽管正确放置了上面建议的行,但在创建TFloatAnimation作为子组件时,我也遇到了同样的问题

FloatAnimation2:= TFloatAnimation.Create(self);
FloatAnimation2.Parent:= Self;
FloatAnimation2.SetSubComponent(True);
FloatAnimation2.Enabled:= true;
FloatAnimation2.PropertyName:= 'Scale.Y';
FloatAnimation2.StartValue:= 1;
FloatAnimation2.StopValue:=  FGrowFactor;
FloatAnimation2.Inverse:=  true;
FloatAnimation2.Interpolation:= TInterpolationType.Linear;
FloatAnimation2.Trigger:= 'IsMouseOver=true';
FloatAnimation2.TriggerInverse:= 'IsMouseOver=false';

enter image description here

此外,如您所见,尽管仅创建了两个TFloatAnimation,但在 结构视图面板。 我该怎么做才能纠正这个问题?

1 个答案:

答案 0 :(得分:0)

通过添加

FloatAnimation1.Stored:= False;

我再也看不到这些子组件了

相关问题