srvpanel TSRVPanel

<< Click to display table of contents >>

srvpanel TSRVPanel

TSRVPanel implements a generic panel control. You can also use panels to group controls together. This component is similar to TSRVGroupBox (the difference is only in the caption position).

Unit SRVPanel;

Syntax

TSRVPanel = class(TCustomSRVPanel)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TCustomControl

TSRVCustomControl

TCustomSRVPanel

Properties and events

This component publishes the following new properties and properties inherited from TCustomSRVPanel:

Property

Type

Default value

Meaning

published Alignment

TAlignment

taCenter

Horizontal text alignment (left/right/center). RTL BiDiMode inverts left and right alignments.

published BorderWidth

Integer

1

Border width.

published CaptionOffset

TRVPixel96Length

10

Caption offset (Caption cannot be displayed closer to the left and right side of the control than specified in this property).

published SRVControlStyle

TSRVControlStyle

srvcsSimple

Defines visual appearance.

DrawOnPrint;

SkinManager;

SkinSchemeIndex;

Color (default value clWhite);

properties inherited from TCustomControl.

Published properties used only if SRVControlStyle = srvcsClassic:

Property

Type

Default value

Meaning

published BorderColor

TColor

$00B8D8D7

Border color

published CornersOffset

Integer

10

Value in range 1..30. Defines how much border corners are rounded

Painting

Caption is aligned horizontally according to Alignment. CaptionOffset shifts the text (to the right, if Alignment=taLeftJustify, or to the left, if Alignment=taRightJustify). Caption is placed vertically in the middle. RTL BiDiMode inverts Alignment.

Background is drawn using Color property.

The Border has width defined in BorderWidth property (even in a skin mode). If SRVControlStyle = srvcsSimple, the border color is defined by RVControlsPainter (see the TRichView manual). If it is equal to srvcsClassic, the border color is defined in BorderColor property.

If SRVControlStyle = srvcsClassic, the border can be rounded according to CornersOffset property.

If SkinManager is assigned, the control is drawn using SkinManager.CurrentSkin.BoxSchemes[SkinSchemeIndex].

Example:

SRVPanel Scheme