Sign in Join
FPDoc Onlineexperiment

TCustomGrid.GetSBRanges procedure

Member of TCustomGridprotectedIn unit Grids

Gets the range values for the scroll bars when visible.

Declaration

pascal
procedure GetSBRanges(const HsbVisible: Boolean; 
 const VsbVisible: Boolean; out HsbRange: Integer; 
 out VsbRange: Integer; out HsbPage: Integer; 
 out VsbPage: Integer; out HsbPos: Integer; 
 out VsbPos: Integer); virtual

Arguments

HsbVisibleTrue if the horizontal scroll bar is visible and updated in the method.
VsbVisibleTrue if the vertical scroll bar is visible and updated in the method.
HsbRange

Returns the horizontal scroll bar range, or 0 when the scroll bar is not visible.

VsbRange

Returns the vertical scroll bar range, or 0 when the scroll bar is not visible.

HsbPage

Returns the page size for the horizontal scroll bar (ClientWidth).

VsbPage

Returns the page size for the vertical scroll bar (ClientHeight).

HsbPos

Returns the position for the thumb bar on the horizontal scroll bar, or 0 if the scroll bar is not visible.

VsbPos

Returns the position for the thumb bar on the vertical scroll bar, or 0 if the scroll bar is not visible.

Description

Called from the CalcScrollbarsRange method when the grid has been scrolled or when a size value in ColWidths has been changed.

See also

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