Skip to main content

TcxCustomSpinEdit Class

Represents a base class for spin editors.

Declaration

TcxCustomSpinEdit = class(
    TcxCustomMaskEdit
)

Remarks

A spin editor is a control that enables editing numerical values by clicking so-called “spin buttons” (up and down arrows displayed within an editor). They allow incrementing and decrementing a number by some amount (integer or floating-point). It is also possible to enter a value directly by typing it.

TcxCustomSpinEdit is a base class for spin editors which are presented by TcxSpinEdit, TcxDBSpinEdit, and TcxCustomTimeEdit controls. To access a value displayed by a spin editor, use the Value property. It specifies the currently edited value. When a user either exits an editor or presses the Enter key, this value is stored in the EditValue property.

The Properties object defines different settings specific to spin editors. Refer to the TcxCustomSpinEditProperties class description to learn more.

Use the Style, StyleDisabled, StyleFocused and StyleHot properties to adjust the look & feel of an editor. Working with styles is discussed in the TcxCustomEditStyle class topic.

See Also