Sign in Join
FPDoc Onlineexperiment

TControlScrollBar.SetIncrement procedure

Member of TControlScrollBarprotectedIn unit Forms

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

Declaration

pascal
procedure SetIncrement(const AValue: TScrollBarInc); virtual

Arguments

AValue

New value for the property.

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.

This description is the one of Forms.TControlScrollBar.Increment.

See also

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