[Overview][Classes][Procedures and functions][Index] | Reference for unit 'Spin' (#lcl)

# TCustomSpinEdit

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The base class for an integer-based spin edit control.

## Declaration

Source position: spin.pp line 146

`type TCustomSpinEdit = class(TCustomFloatSpinEdit)`
`protected`
`procedure SetMaxValue(); virtual; overload;` |  | Sets the value for the MaxValue property.
`procedure SetMinValue(); virtual; overload;` |  | Sets the value for the MinValue property.
`procedure SetIncrement(); virtual; overload;` |  | Sets the value for the Increment property.
`procedure SetValue(); virtual; overload;` |  | Sets the value for the Value property.
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`function GetLimitedValue(); override;` |  | Gets the value for the control limited the range in MinValue and MaxValue.
`property Value: Integer; [rw]` |  | The value for the spin edit control.
`property MinValue: Integer; [rw]` |  | Minimum value allowed for the spin edit control.
`property MaxValue: Integer; [rw]` |  | Maximum value allowed for the spin edit control.
`property Increment: Integer; [rw]` |  | The value by which the value of the control should be increased/decreased when the user clicks one of the arrows or one of the keyboard up/down arrows.
`end;`

## Inheritance

`TCustomSpinEdit` |  | The base class for an integer-based spin edit control.
`TCustomFloatSpinEdit` |  | The base class for a spin edit control using a floating point value.
`TCustomEdit` |  | The base class for controls presenting editable text.
`TWinControl` |  | Implements a windowed control which can contain other child controls.
`TControl` |  | The base class for visible controls.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TCustomSpinEdit is a TCustomFloatSpinEdit descendant which implements a control used to edit, increment, and decrement an Integer value. It has arrow buttons to allow the user to increment / decrement the value and an edit box used to enter a value directly.

Properties like Value, MinValue, MaxValue, and Increment are re-declared as an Integer type. It provides overridden or overloaded methods which use the Integer values needed for the implementation.

## See also

TCustomFloatSpinEdit |  | The base class for a spin edit control using a floating point value.