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

TCustomGrid.ScrollBarPosition

Sets the position for the specified scrollbar to the given value.

Declaration

Source position: grids.pas line 1152

protected procedure TCustomGrid.ScrollBarPosition(

  Which: Integer;

  Value: Integer

);

Arguments

Which

  

Scrollbar updated in the method.

Value

  

New position for the scrollbar.

Description

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.

See also

TCustomGrid.ScrollBarPage

  

Performs a page movement of the specified scrollbar.

TCustomGrid.ScrollBarRange

  

Sets the range for the specified scrollbar.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.