Class TCastleLabel

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCastleLabel = class(TUIControlFont)

Description

Label with possibly multiline text, in a box.

Hierarchy

Overview

Fields

Public internal const DefaultLineSpacing = 2;

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure Render; override;
Public function Rect: TRectangle; override;

Properties

Public property Color: TCastleColor read FColor write FColor;
Published property Text: TStrings read FText;
Published property Padding: Integer read FPadding write FPadding default 0;
Published property LineSpacing: Integer read FLineSpacing write FLineSpacing default DefaultLineSpacing;
Published property Tags: boolean read FTags write FTags default false;
Published property Frame: boolean read FFrame write FFrame default true;
Published property MaxWidth: Integer read FMaxWidth write FMaxWidth;

Description

Fields

Public internal const DefaultLineSpacing = 2;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure Render; override;
 
Public function Rect: TRectangle; override;
 

Properties

Public property Color: TCastleColor read FColor write FColor;

Text color. By default it's white.

Published property Text: TStrings read FText;
 
Published property Padding: Integer read FPadding write FPadding default 0;

Inside the label box, padding between rect borders and text.

Published property LineSpacing: Integer read FLineSpacing write FLineSpacing default DefaultLineSpacing;

Extra spacing between lines (may also be negative to squeeze lines tighter).

Published property Tags: boolean read FTags write FTags default false;

Does the text use HTML-like tags. This is very limited for now, see TCastleFont.PrintStrings documentation.

Published property Frame: boolean read FFrame write FFrame default true;

Draw frame around the text. Frame uses theme image tiLabel, see TCastleTheme.Images if you want to customize it.

Published property MaxWidth: Integer read FMaxWidth write FMaxWidth;

If non-zero, limit the width of resulting label. The text will be broken in the middle of lines, to make it fit (together with Padding) inside MaxWidth.


Generated by PasDoc 0.13.0 on 2014-12-30 03:52:15