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

TCustomUpDown.Position

The current position (or value) for the control as a SmallInt type.

Declaration

Source position: comctrls.pp line 2000

protected property TCustomUpDown.Position : SmallInt
  read GetPosition
  write SetPosition;

Description

Position is a SmallInt property with the current value for the control. Its value is read from the Caption text in the Associate control (when assigned), and converted to an Integer value used in the property. Values in Min and Max are used as the property value if the converted integer exceeds one of these limits.

Changing the value for the property causes the numeric value to be converted to its string representation and stored in the Caption text for the Associate control. When Thousands is enabled, the thousands separator from DefaultFormatSettings is included in the string value. The widgetset class instance is updated if its handle has been assigned.

Use Min and Max to specify the lower and upper limits for the value in Position.

See also

TCustomUpDown.Associate

  

Control used to display and edit the Position for the control.

TCustomUpDown.Max

  

The largest value allowed in the Position property.

TCustomUpDown.Min

  

The smallest value allowed in the Position property.

TCustomUpDown.Thousands

  

Enables or disables use of the thousands separator when displaying the text for the Position property.


Version 4.0 Generated 2025-05-03 Home