Sets the position for the specified scrollbar to the given value.
Source position: grids.pas line 1152
protected procedure TCustomGrid.ScrollBarPosition( |
Which: Integer; |
Value: Integer |
); |
Which |
|
Scrollbar updated in the method. |
Value |
|
New position for the scrollbar. |
ScrollBarPosition is a method used to set position for the scrollbar specified in Which to the new Value.
Which contains either SB_Horz or SB_Vert, and identifies the scrollbar affected in the method.
Value contains the new position for the scrollbar.
ScrollBarPosition uses the SetScrollInfo routine to update the scrollbar position. It allocates the TScrollInfo structure and stores Value as the scrollbar position in the structure.
ScrollBarPosition calls ScrollBarIsVisible to determine if the scrollbar in Which is visible. The visibility is used when calling SetScrollInfo.
No actions are performed in the method if the Handle has not been allocated for the grid control.
|
Performs a page movement of the specified scrollbar. |
|
|
Sets the range for the specified scrollbar. |