Sign in Join
FPDoc Onlineexperiment

TGridScrollerDoScroll procedure type

In unit Grids

Specifies an event handler routine used to scroll a grid control when a column or row is dragged beyond the grid client area.

Declaration

pascal
TGridScrollerDoScroll = procedure(Dir: TPoint) of object

Arguments

Dir

TPoint instance with delta values indicating the scroll direction.

Description

Dir is a TPoint instance which indicates the scroll direction for a grid control. The X and Y members in Dir can contain position or negative values. A negative value indicates the scroll direction is to the left (X) or top (Y) of the grid control. A positive value indicates the scroll direction is to the right (X) or bottom (Y). The values cause the top and/or left visible column on the grid to be adjusted by the indicated amount.

TGridScrollerDoScroll is the type used to implement the internal callback routine in the TGridScroller class. It uses the private ScrollerDoScroll method in TCustomGrid as the handler routine called when a mouse movement is handled in the control.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.