Sign in Join
FPDoc Onlineexperiment

TControlScrollBar.SetSmooth procedure

Member of TControlScrollBarprotectedIn unit Forms

Enables smooth scrolling, with automatic adjustment of Increment and Page.

Declaration

pascal
procedure SetSmooth(const AValue: Boolean); virtual

Arguments

AValue

New value for the property.

Description

Smooth is a Boolean property that indicates if the associated control is scrolled using an Increment value computed to be 10% of the Page size for the scroll bar. Set Smooth to True when the scroll bar should use a scrolling increment based on the size of the client area in the associated control. When Smooth is set to False, the Increment property determines the size for the scroll operation when the Up or Down arrows are clicked.

Smooth is used in the UpdateScrollBar method, and when set to True causes the value in Increment to be recalculated using the proportional size value. Smooth is relevant when the associated control is descended from TScrollingWinControl.

The default value for the property is False.

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

See also

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