| Description | Hierarchy | Fields | Methods | Properties |
type TGUIStaticText = class(TGUIElement)
Multi or single line text label.
![]() |
function GetOverrideFont: TGUIFont; inline; |
![]() |
procedure SetOverrideFont(NFont: TGUIFont); inline; |
![]() |
procedure SetTextAlignmet(Horizontal, Vertical: TGUIAlignment); inline; |
![]() |
property BackgroundColor: TARGBColor write SetBackgroundColor; |
![]() |
property DrawBackground: Boolean write SetDrawBackground; |
![]() |
property DrawBorder: Boolean write SetDrawBorder; |
![]() |
property OverrideColor: TARGBColor read GetOverrideColor write SetOverrideColor; |
![]() |
property TextHeight: LongInt read GetTextHeight; |
![]() |
property TextWidth: LongInt read GetTextWidth; |
![]() |
property UseOverrideColor: Boolean read IsOverrideColorEnabled write EnableOverrideColor; |
![]() |
property WordWrap: Boolean read IsWordWrapEnabled write SetWordWrap; |
![]() |
function GetOverrideFont: TGUIFont; inline; |
|
Returns the override font. ReturnsThe override font, if any, else nil. | |
![]() |
procedure SetOverrideFont(NFont: TGUIFont); inline; |
|
Overrides the default font used by the static text or disables overriding. Parameters
| |
![]() |
procedure SetTextAlignmet(Horizontal, Vertical: TGUIAlignment); inline; |
|
Sets the text justification mode. Parameters | |
![]() |
property BackgroundColor: TARGBColor write SetBackgroundColor; |
|
Sets the background color. | |
![]() |
property DrawBackground: Boolean write SetDrawBackground; |
![]() |
property DrawBorder: Boolean write SetDrawBorder; |
![]() |
property OverrideColor: TARGBColor read GetOverrideColor write SetOverrideColor; |
|
The override text color. | |
![]() |
property TextHeight: LongInt read GetTextHeight; |
|
The height of the text in pixels when it is drawn. | |
![]() |
property TextWidth: LongInt read GetTextWidth; |
|
Returns the width of the current text, in the current font. | |
![]() |
property UseOverrideColor: Boolean read IsOverrideColorEnabled write EnableOverrideColor; |
|
Specifies if the static text should use its OverrideColor rather than the default skin color for static texts. | |
![]() |
property WordWrap: Boolean read IsWordWrapEnabled write SetWordWrap; |
|
Enables or disables automatic wrap-around for oversized lines. | |