SRVGroupBox TSRVGroupBox

Top  Previous  Next

The TSRVGroupBox component is used to group related controls. This component is similar to TSRVPanel.

Unit SRVGroupBox;

Syntax

TSRVGroupBox = 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 according to Alignment. CaptionOffset shifts the text (to the right, if Alignment=taLeftJustify, or to the left, if Alignment=taRightJustify). Caption is placed vertically at the top.

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:

SRVGroupBox Scheme


ScaleRichView © Ilya Zelensky & Sergey Tkachenko