In Firemonkey the text color of the TLabel does not change [duplicate]

  

This question already has an answer here:

How to change the font of a label in delphi xe5 Firemonkey

1 answer

In Delphi XE8 at design time I add a TLabel to a toolbar and change the text color of the font from black to red. The red color is shown in design time.

Problem:
When I run the app in Windows the text color is not changed, it is still black. The property FontColor in StyledSettings is not checked.

Q: How can I set the color of the label to red? It must be something obvious i’m overlooking.

Thanks !

EDIT: example of 2 labels in a top toolbar. Both should have font color white but the first one is white and the second is black. So find the differences:

object LblProgress: TLabel
Tag = 1
Align = Right
AutoSize = True
StyledSettings = [Family, Size, Style]
Margins.Top = 5.000000000000000000
Position.X = 203.000000000000000000
Position.Y = 5.000000000000000000
Size.Width = 71.000000000000000000
Size.Height = 39.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Style = [fsBold]
TextSettings.FontColor = claWhite
TextSettings.WordWrap = False
Text = ‘scanning’
end
object Label6: TLabel
Align = Right
AutoSize = True
StyledSettings = [Family, Size, Style]
Position.X = 149.000000000000000000
Size.Width = 54.000000000000000000
Size.Height = 44.000000000000000000
Size.PlatformDefault = False
TextSettings.Font.Style = [fsBold]
TextSettings.FontColor = claWhite
TextSettings.WordWrap = False
Text = ‘Label6’
end

Was it really ‘Tag = 1’ ?

Yes it was.

Comments are closed.