FMX.Graphics.TFontColorForState.CurrentColor
Delphi
property CurrentColor[const Index: TIndex]: TAlphaColor read GetCurrentColor;
C++
__property System::Uitypes::TAlphaColor CurrentColor[const TIndex Index] = {read=GetCurrentColor};
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
property | public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TFontColorForState |
Beschreibung
Die Farbe, die tatsächlich zum Zeichnen des Textes für den in Index
angegebenen Status verwendet wird.
CurrentColor enthält die TAlphaColor-Farbe, die tatsächlich zum Zeichnen eines Textes verwendet wird. CurrentColor entspricht standardmäßig der Eigenschaft Color. Wenn
Color[Index] = claNull; // claNull=$00000000
dann verwendet CurrentColor die FontColor-Farbe
aus dem Owner-Objekt.
Sie können die virtuelle Methode GetCurrentColor in einer abgeleiteten Klasse überschreiben, um eine angepasste Farbe für eine Schrift festzulegen.
Siehe auch
- 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