Gets the position for the specified scrollbar.
Source position: grids.pas line 1083
protected function TCustomGrid.GetScrollBarPosition( |
Which: Integer |
):Integer; |
Which |
|
Indicates the scrollbar (horizontal or vertical) examined in the method. |
Current position in the secified scrollbar.
GetScrollBarPosition is an Integer function used to get the position for the scrollbar specified in Which. GetScrollBarPosition calls the GetScrollInfo routine in the LCL interface to get the TScrollInfo structure with the position for the scrollbar in Which.
The return value contain the position from the TScrollInfo structure. The return value is 0 (zero) if the Handle for the grid control has not been allocated.
|
Returns all or selected information about a Scroll Bar. |
|
|
The Scrollbar properties parameter record. |