SRVPanel TSRVPanel

Top  Previous  Next

TSRVPanel implements a generic panel control. You can also use panels to group controls together. This component is similar to TSRVGroupBox.

Unit SRVPanel;

Syntax

TSRVPanel = class(TSRVCustomControl)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TCustomControl

TSRVCustomControl

Properties and events

This component publishes the following properties inherited from TSRVCustomControl:

Alignment (default value is taCenter);

DrawOnPrint;

SkinManager;

SkinSchemeIndex;

Color (default value $00B8D8D7);

properties inherited from TCustomControl.

New published properties:

Property

Type

Default value

Meaning

published BorderColor

TColor

$00B8D8D7

Border color

published BorderWidth

Integer

1

Border width

published CaptionOffset

Integer

10

Value in range 1..30. A distance from the border to the caption

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.

Background is drawn using Color property.

Border is drawn using BorderColor, BorderWidth and CornersOffset properties (even in a skin mode).

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

Example:

SRVPanel Scheme


ScaleRichView © Ilya Zelensky & Sergey Tkachenko