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

TCustomGrid.ScrollBy

Scrolls the non-fixed area for the control by the specified delta values.

Declaration

Source position: grids.pas line 1161

protected procedure TCustomGrid.ScrollBy(

  DeltaX: Integer;

  DeltaY: Integer

); override;

Arguments

DeltaX

  

Scroll amount in the horizontal direction. A negative value scrolls to the left, and a positive value scrolls to the right.

DeltaY

  

Scroll amount in the vertical direction. A negative value scrolls toward the top, and a positive value scrolls toward the bottom.

Description

Calls ScrollWindowEx to perform the scrolling operation for the non-fixed client area in the control. No scrolling is performed when both DeltaX and DeltaY contain 0 (zero).

Updates the visible grid area in the cached information for the control, and recalculates the scroll bar ranges.

See also

TWinControl.ScrollBy

  

Scrolls the control (and all child controls) by the specified amounts.