[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 scroll bars.

Declaration

Source position: grids.pas line 991

protected procedure TCustomGrid.CalcScrollbarsRange;

Description

CalcScrollbarsRange is a procedure used to update the range, page, and thumb position for visible scroll bars 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 scroll bars 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 scroll bars when visible.

TCustomGrid.UpdateHorzScrollBar

  

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

TCustomGrid.UpdateVertScrollBar

  

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

TCustomGrid.ScrollBy

  

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


Version 4.0 Generated 2025-05-03 Home