Sign in Join
FPDoc Onlineexperiment

TCustomUpDown.Position property

Member of TCustomUpDownprotectedIn unit ComCtrls

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

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.