delphidelphi-xe3firemonkey-fm2

Delphi Firemonkey 2 .color property


I don't know if it is just me missing something, but I am quite frustrated by this issue.
When I try to set the .color property there are no values available such as claBlue.

For example:

 Canvas.Stroke.Color := claBue.

Am I missing a reference? I have included FMX.Types.


Solution

  • Include into uses unit System.UIConsts and you will get all available color names.

    uses System.UIConsts;