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

TCustomGrid.UpdateHorzScrollBar

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

Declaration

Source position: grids.pas line 1180

protected procedure TCustomGrid.UpdateHorzScrollBar(

  const aVisible: Boolean;

  const aRange: Integer;

  const aPage: Integer;

  const aPos: Integer

); virtual;

Arguments

aVisible

  

True if the scrollbar is already visible.

aRange

  

Maximum position for the scrollbar.

aPage

  

Page size for a thumb tab in the scrollbar.

aPos

  

Position for the scrollbar.

Description

UpdateHorzScrollBar calls ScrollBarShow to updated the scrollbar visibility when it differs from the value in aVisible. The ScrollBarRange is called to apply the values in ARange, APage, and APos to the horizontal scrollbar for the control. No actions are performed if the visibility has not been changed and the scrollbar is not visible.

UpdateHorzScrollBar is called from the CalcScrollbarsRange method when the visible area in the grid is scrolled.