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

TCustomUpDown.Increment

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

Declaration

Source position: comctrls.pp line 1992

protected property TCustomUpDown.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

TCustomUpDown.Associate

  

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

TCustomUpDown.Min

  

The smallest value allowed in the Position property.

TCustomUpDown.Max

  

The largest value allowed in the Position property.

TCustomUpDown.Position

  

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

TCustomUpDown.AdjustPos

  

Applies changes to the control value using its increment and decrement buttons.

TCustomUpDown.Click

  

Handles a mouse click on a speed button in the control.


Version 4.0 Generated 2025-05-03 Home