SRVButton TSRVButton

Top  Previous  Next

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

published Default

Boolean

False

Determines whether the button’s OnClick event handler executes when the  Enter  key is pressed.

published FocusRectOffset

Integer

3

A distance from the control edges to the dotted rectangle drawn on the focused button (if ShowFocusRect=True)

published Glyph

TPicture

(empty)

Specified the picture that appears on the button

published ModalResult

TModalResult

mrNone

Determines whether and how the button closes its (modal) parent form.

published MouseBorderWidth

Integer

2

Width of button sides

published OffsetOnClick

Integer

0

Specifies how far Glyph and Caption are shifted when the button is pressed.

published 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:

SRVButton Scheme


ScaleRichView © Ilya Zelensky & Sergey Tkachenko