Class TGUIStaticText

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGUIStaticText = class(TGUIElement)

Description

Multi or single line text label.

Hierarchy

Overview

Methods

Public function GetOverrideFont: TGUIFont; inline;
Public procedure SetOverrideFont(NFont: TGUIFont); inline;
Public procedure SetTextAlignmet(Horizontal, Vertical: TGUIAlignment); inline;

Properties

Public property BackgroundColor: TARGBColor write SetBackgroundColor;
Public property DrawBackground: Boolean write SetDrawBackground;
Public property DrawBorder: Boolean write SetDrawBorder;
Public property OverrideColor: TARGBColor read GetOverrideColor write SetOverrideColor;
Public property TextHeight: LongInt read GetTextHeight;
Public property TextWidth: LongInt read GetTextWidth;
Public property UseOverrideColor: Boolean read IsOverrideColorEnabled write EnableOverrideColor;
Public property WordWrap: Boolean read IsWordWrapEnabled write SetWordWrap;

Description

Methods

Public function GetOverrideFont: TGUIFont; inline;

Returns the override font.

Returns

The override font, if any, else nil.

Public procedure SetOverrideFont(NFont: TGUIFont); inline;

Overrides the default font used by the static text or disables overriding.

Parameters
NFont
The new font or nil to use the default one.
Public procedure SetTextAlignmet(Horizontal, Vertical: TGUIAlignment); inline;

Sets the text justification mode.

Parameters
Horizontal
gaUpperLeft for left justification, gaLowerRight for right justification, gaCenter for centered text.
Vertical
gaUpperLeft for alignment with the top edge, gaLowerRight for the bottom edge, gaCenter for vertically centered text.

Properties

Public property BackgroundColor: TARGBColor write SetBackgroundColor;

Sets the background color.
If you want the background to be drawn, set DrawBackground to True.

Public property DrawBackground: Boolean write SetDrawBackground;

Specifies if the static text should draw a background.

Public property DrawBorder: Boolean write SetDrawBorder;

Specifies if the static text should draw a border.

Public property OverrideColor: TARGBColor read GetOverrideColor write SetOverrideColor;

The override text color.
To use it, set UseOverrideColor to True.

Public property TextHeight: LongInt read GetTextHeight;

The height of the text in pixels when it is drawn.
This is useful for adjusting the layout of gui elements based on the height of the multiline text in this element.

Public property TextWidth: LongInt read GetTextWidth;

Returns the width of the current text, in the current font.
If the text is broken, this returns the width of the widest line.

Public 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.

Public property WordWrap: Boolean read IsWordWrapEnabled write SetWordWrap;

Enables or disables automatic wrap-around for oversized lines.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22