【问题标题】:Using the style of the inherited control使用继承控件的样式
【发布时间】:2011-12-04 21:29:29
【问题描述】:

我的第一个 firemonkey 组件继承自 TSpinBox,但我不知道如何让它使用与基本组件相同的样式。 在我的应用程序设计时,我可以将 StyleLookup 设置为“spinboxstyle”并获得正确的样式,但如果我尝试在新组件的构造函数中这样做,它会忽略它。 正确的程序是什么?

【问题讨论】:

    标签: delphi delphi-xe2 firemonkey


    【解决方案1】:

    构造函数是正确的地方。

    You have to use FStyleLookup := 'spinboxstyle';  (Note the F)
    Not StyleLookup := 'spinboxstyle';  
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-25
      • 2021-10-30
      • 2016-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-16
      • 2014-08-18
      相关资源
      最近更新 更多