Delphi XE2-FireMonkey 新功能(4) FireMonkey控件样式

  • A+
所属分类:[开发技巧]

控件自定义样式

FireMonkey 控件的形状,画刷,样式    纹饰这些构成了一个样式。存储在style book里面。

默认样式介绍

每一个控件类在针对每个不同的操作系统平台都有一个默认的样式,我们可以拖放一个控件在窗体设计区,右键去单击一次,选择“edit Default style”这就可以查看默认的样式了,

  • checkboxstyle: TLayout (The entire control)
    • TLayout (The layout for the box.)
      • background: TRectangle (The box itself, which is actually a composition of:)
        • TGlowEffect (Glow when the control has focus.)
        • TRectangle (The outside rectangle that forms the box.)
        • TRectangle (The inside rectangle.)
        • TColorAnimation (Color animation when the mouse moves over.)
        • TColorAnimation (and back out.)
        • checkmark: TPath (The check inside the box, drawn as a path, which has:)
          • TColorAnimation (Its own color animation when the check is toggled on or off.)
    • text: TText (And back under the top level, the text label.)

嘻嘻~很强大吧D迷们!!

children.

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin
广告也精彩
avatar
广告也精彩

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: