Sign in Join
FPDoc Onlineexperiment

TScrollingWinControl.CalculateAutoRanges procedure

Member of TScrollingWinControlprotectedIn unit Forms

Sets or resets the ranges used for scroll bars on the control.

Declaration

pascal
procedure CalculateAutoRanges; virtual

Description

CalculateAutoRanges calculates the preferred size for the control - both with and without scroll bars. The Range properties in HorzScrollBar and VertScrollBar are updated to reflect the logical (virtual) size for the content on the control. The Range value is set to 0 if the scroll bar is not visible.

Used in the implementation of the ComputeScrollbars method.

See also

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