[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Updates the vertical scroll bar to use the specified visibility, range, and page values.
Source position: grids.pas line 1208
protected procedure TCustomGrid.UpdateVertScrollbar( |
const aVisible: Boolean; |
const aRange: Integer; |
const aPage: Integer; |
const aPos: Integer |
); virtual; |
aVisible |
|
True if the scroll bar should be visible. |
aRange |
|
Maximum position for the scroll bar. |
aPage |
|
Page size for a thumb tab in the scroll bar. |
aPos |
|
Position for the scroll bar. |
UpdateVertScrollbar calls ScrollBarShow to updated the scroll bar visibility when it differs from the value in aVisible. The ScrollBarRange method is called to apply the values in ARange, APage, and APos to the vertical scroll bar for the control. No actions are performed if the visibility has not been changed and the scroll bar is not visible.
UpdateVertScrollbar is called from the CalcScrollbarsRange method when the visible area in the grid is scrolled.