srvlabel TSRVLabel

<< Click to display table of contents >>

srvlabel TSRVLabel

TSRVLabel is a control displaying text.

Unit SRVLabel;

Syntax

TSRVLabel = class(TSRVGraphicControl);

Hierarchy

TObject

TPersistent

TComponent

TControl

TGraphicControl

TCustomSRVGraphicControl

TSRVGraphicControl

Properties and events

This component publishes the following properties inherited from TSRVGraphicControl:

Alignment

AutoSize

DrawOnPrint;

SkinManager;

SkinSchemeIndex;

properties inherited from TGraphicControl.

Property

Type

Default value

Meaning

published BackgroundColor

TColor

$881C10

Text shadow color

published ForegroundColor

TColor

$FFFFFF

Text color (overrides Font.Color)

published Offset

TRVPixel96Length

1

Shadow offset (0 disables shadow)

Painting

This component displays text specified in Caption. This component is transparent. ForegroundColor is a text color, BackgroundColor is a text shadow color. A shadow is shifted by Offset. The caption is aligned according to Alignment (RTL BiDiMode inverts alignments). The control size is set automatically, if AutoSize=True.

If SkinManager is assigned, a border is drawn using SkinManager.CurrentSkin.BoxSchemes[SkinSchemeIndex].

Example:

SRVLabel Scheme