Sign in Join
FPDoc Onlineexperiment

TCustomUpDown.Increment property

Member of TCustomUpDownprotectedIn unit ComCtrls

The amount by which Position is increased or decreased for each button click.

Declaration

pascal
property Increment: Integer read FIncrement write SetIncrement default 1;

Description

Increment is an Integer property which contains an amount by which the value in Position is increased or decreased when a button is clicked on the control. It is also used to apply cursor Up or Down keys pressed when the Associate control has focus. It is specified as a positive value, but is negated when the Down button is clicked or the Down arrow key is pressed.

The default value for the property is 1. Changing the property value causes the widgetset class to be updated when its handle has been assigned.

Increment is used in the Click method when the property value is validated and range limited to the settings in Min and Max. It is also used in the AdjustPos method called when key down events are handled for the Associate control.

See also

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