|
TSRVLabel is a control displaying text.
Unit SRVButton;
Syntax
TSRVButton = class(TSRVCustomControl)
Hierarchy
TObject
TPersistent
TComponent
TControl
TWinControl
TCustomControl
TSRVCustomControl
Properties and events
This component publishes the following properties inherited from TSRVCustomControl:
•DrawOnPrint; •SkinManager; •SkinSchemeIndex; •properties inherited from TCustomControl. New published properties:
Property
|
Type
|
Default value
|
Meaning
|
Default
|
Boolean
|
False
|
Determines whether the button’s OnClick event handler executes when the Enter key is pressed.
|
FocusRectOffset
|
Integer
|
3
|
A distance from the control edges to the dotted rectangle drawn on the focused button (if ShowFocusRect=True)
|
Glyph
|
TPicture
|
(empty)
|
Specified the picture that appears on the button
|
ModalResult
|
TModalResult
|
mrNone
|
Determines whether and how the button closes its (modal) parent form.
|
MouseBorderWidth
|
Integer
|
2
|
Width of button sides
|
OffsetOnClick
|
Integer
|
0
|
Specifies how far Glyph and Caption are shifted when the button is pressed.
|
ShowFocusRect
|
Boolean
|
True
|
Shows/hides a dotted rectangle drawn on the focused button
|
New published event:
•OnClick, occurs when the user clicks the control. Painting
If SkinManager is assigned, the button is drawn using SkinManager.CurrentSkin.BoxSchemes[SkinSchemeIndex].
Example:

|