【问题标题】:Delphi Firemonkey 2 .color propertyDelphi Firemonkey 2 .color 属性
【发布时间】:2013-04-18 07:09:40
【问题描述】:

我不知道是否只是我错过了什么,但我对这个问题感到非常沮丧。
当我尝试设置 .color 属性时,没有可用的值,例如 claBlue

例如:

 Canvas.Stroke.Color := claBue.

我是否缺少参考资料?我已经加入了FMX.Types

【问题讨论】:

    标签: delphi delphi-xe3 firemonkey-fm2


    【解决方案1】:

    将 System.UIConsts 包含在使用单元中,您将获得所有可用的颜色名称。

    uses System.UIConsts;
    

    【讨论】:

    • 终于!非常感谢!
    • 如果此解决方案适合您,请接受答案。
    猜你喜欢
    • 1970-01-01
    • 2014-06-29
    • 2017-04-09
    • 1970-01-01
    • 1970-01-01
    • 2013-02-23
    • 2011-12-31
    • 2017-08-05
    • 2016-12-11
    相关资源
    最近更新 更多