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

# TCustomUpDown.Max

The largest value allowed in the Position property.

## Declaration

Source position: comctrls.pp line 1996

`protected property TCustomUpDown.Max : SmallInt read FMax write SetMax default 100;`

## Description

Max is a SmallInt property which contains the largest value allowed in the Position property. The default value for the property is 100. A new value assigned to the property is also applied to Position if it is larger than the new value in Max. The new value is also applied to the widgetset class instance when its handle has been assigned.

Values in Min and Max are used in the Click method when a new value for Position is validated and range limited. It is also used in AdjustPos when key down events are handled for the control.

## See also

TCustomUpDown.Min |  | The smallest value allowed in the Position property.
TCustomUpDown.Position |  | The current position (or value) for the control as a SmallInt type.
TCustomUpDown.Click |  | Handles a mouse click on a speed button in the control.
TCustomUpDown.AdjustPos |  | Applies changes to the control value using its increment and decrement buttons.