【问题标题】:Hiding subcomponents at design time in Structure view panel在设计时在结构视图面板中隐藏子组件
【发布时间】:2020-10-25 14:05:21
【问题描述】:

我指的是这些:

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';

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

【问题讨论】:

    标签: delphi components


    【解决方案1】:

    通过添加

    FloatAnimation1.Stored:= False;
    

    我不再看到子组件

    【讨论】:

      猜你喜欢
      • 2018-10-16
      • 2014-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-20
      • 2020-02-15
      相关资源
      最近更新 更多