Sign in Join
FPDoc Onlineexperiment

TScrollingWinControl.UpdateScrollbars procedure

Member of TScrollingWinControlpublicIn unit Forms

Initializes or updates the scroll bars for the control.

Declaration

pascal
procedure UpdateScrollbars

Description

UpdateScrollbars is a method used to update the scroll bars used on the windowed control.

When automatic scrollbars are enabled using AutoScroll, the scroll bar information is initialized as needed for the visible scroll bars. The UpdateScrollBar method in both VertScrollBar and HorzScrollBar is called to recalculate the current page and range for the scroll bars.

No actions are performed in the method if a handle has not been allocated for the control, or when either HorzScrollBar or VertScrollBar has not been assigned.

Recursive calls to the method are ignored.

See also

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