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

TCustomGrid.BeforeMoveSelection

BeforeMoveSelection - method to use before a selection is moved

Declaration

Source position: grids.pas line 806

protected procedure TCustomGrid.BeforeMoveSelection(

  const DCol: Integer;

  const DRow: Integer

); virtual;

Description

This method is called from TCustomGrid.MoveExtend method whenever the current grid cursor location is about to change. The destination column and row are specified in DCol and DRow parameters respectively. The new location is known to be a valid selectable cell (see TCustomGrid.SelectCell ), and is given in absolute cell coordinates. At this point the current grid location has not changed and can be retrieved with Col and Row properties. The purpose of this method is to call event handler OnBeforeSelection.

See also

TCustomGrid.MoveExtend

  

MoveExtend - move an extended selection; if Relative is true, use Delta column and row to find position; returns True if successful

TCustomDrawGrid.OnBeforeSelection

  

OnBeforeSelection - event handler for use before a selection is made

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