[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.CalcScrollbarsRange

Updates the range, page, and thumb position for visible scrollbars.

Declaration

Source position: grids.pas line 966

protected procedure TCustomGrid.CalcScrollbarsRange;

Description

CalcScrollbarsRange is a procedure used to update the range, page, and thumb position for visible scrollbars in the grid control. CalcScrollbarsRange accesses the cached grid data in GCache to calculate values needed in the method. The visibility for both horizontal and vertical scrollbars is determined, and the range, page and thumb position is applied in the UpdateHorzScrollBar and UpdateVertScrollbar methods.

CalcScrollbarsRange is used in the implementation of the ScrollBy and UpdateSizes methods in TCustomGrid.

See also

TCustomGrid.GCache

  

Contains cached data about the visual layout and state for the grid control.

TCustomGrid.GetSBRanges

  

Gets the range values for the scrollbars when visible.

TCustomGrid.UpdateHorzScrollBar

  

Updates the horizontal scrollbar to use the specified range, page, and position.

TCustomGrid.UpdateVertScrollBar

  

Updates the vertical scrollbar to use the specified visibility, range, and page values.

TCustomGrid.ScrollBy

  

Scrolls the non-fixed area for the control by the specified delta values.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.