FMX.Graphics.TFontColorForState.CurrentColor
Delphi
property CurrentColor[const Index: TIndex]: TAlphaColor read GetCurrentColor;
C++
__property System::Uitypes::TAlphaColor CurrentColor[const TIndex Index] = {read=GetCurrentColor};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TFontColorForState |
Description
The color that is really used to draw a text for the state specified by Index
.
CurrentColor contains the TAlphaColor color that is really used to draw a text. By default, CurrentColor is the same as in the Color property. If
Color[Index] = claNull; // claNull=$00000000
then CurrentColor uses the FontColor color
from the Owner object.
You can override the virtual GetCurrentColor method in a derived class to define a customized color for a font.
See Also
- FMX.Graphics.TFontColorForState.TIndex
- FMX.Graphics.TFontColorForState.Color
- FMX.Graphics.TFontColorForState.Active
- FMX.Graphics.TFontColorForState.Focused
- FMX.Graphics.TFontColorForState.Hot
- FMX.Graphics.TFontColorForState.Normal
- FMX.Graphics.TFontColorForState.Pressed
- FMX.Graphics.TTextSettings
- FMX.Graphics.TTextSettings.FontColor
- FMX.Graphics.TFontColorForState.GetCurrentColor