SRVRadioButton TSRVRadioButton

Top  Previous  Next

Radio buttons present a set of mutually exclusive options to the user; that is, only one radio button in a set can be selected at a time.

Unit SRVRadioButton;

Syntax

TSRVRadioButton = class(TSRVCustomControl)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TCustomControl

TSRVCustomControl

Properties and events

This component publishes the following properties inherited from TSRVCustomControl:

Alignment;

ButtonSkinSchemeIndex;

DrawOnPrint;

SkinManager;

SkinSchemeIndex;

properties inherited from TCustomControl.

New published properties:

Property

Type

Default value

Meaning

published Checked

Boolean

False

Determines whether the option represented by the radio button is selected.

Painting

A position of the circle and Caption depends on Alignment:

taLeftJustify: the circle and the caption is aligned to the left, the circle is to the left of the caption;

taRightJustify: the circle and the caption is aligned to the right, the circle is to the right of the caption;

taCenter: the circle is in the middle, the caption is aligned to the left.

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

Example:

SRVRadioButton Scheme


ScaleRichView © trichview.com