Sign in Join
FPDoc Onlineexperiment

TControlScrollBar.Increment property

Member of TControlScrollBarpublishedIn unit Forms

Number of pixels the display area is scrolled for scroll bar or mouse wheel movements.

Declaration

pascal
property Increment: TScrollBarInc read GetIncrement write SetIncrement default 8;

Description

Increment is a TScrollBarInc property which indicates the amount the client area in the associated control is scrolled when the Up or Down navigation arrows on the scroll bar are clicked. It is also used for movements of the mouse wheel on the control. The default value is 8 pixels.

The value in Increment may be automatically recalculated in the UpdateScrollBar method when the Smooth property is enabled and the associated control is a TScrollingWinControl descendant. This is done to ensure that Increment contains 10% of the value for the Page property.

Increment is used in the ScrollHandler method when updating the Position property for scroll bar messages received in the control.

See also

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