 TSRVPanel
 TSRVPanel| << Click to display table of contents >> 
 | 
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)
TObject
TPersistent
TComponent
TControl
TWinControl
TCustomControl
This component publishes the following new properties and properties inherited from TCustomSRVPanel:
| Property | Type | Default value | Meaning | 
|---|---|---|---|
| 
 | TAlignment | taCenter | Horizontal text alignment (left/right/center). RTL BiDiMode inverts left and right alignments. | 
| 
 | Integer | 1 | Border width. | 
| 
 | TRVPixel96Length | 10 | Caption offset (Caption cannot be displayed closer to the left and right side of the control than specified in this property). | 
| 
 | 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 | 
|---|---|---|---|
| 
 | TColor | $00B8D8D7 | Border color | 
| 
 | Integer | 10 | Value in range 1..30. Defines how much border corners are rounded | 
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:
