Sign in Join
FPDoc Onlineexperiment

TCustomDBGrid.MouseToRecordOffset function

Member of TCustomDBGridpublicIn unit DBGrids

Gets the grid zone and record offset for the cell at the specified mouse coordinates.

Declaration

pascal
function MouseToRecordOffset(const x: Integer; const y: Integer; 
 out Column: TColumn; 
 out RecordOffset: Integer): TGridZone

Arguments

x

Horizontal coordinate for the mouse cursor.

y

Vertical coordinate for the mouse cursor.

Column

TColumn instance for the cell under the mouse cursor, or Nil if the cell is a fixed title cell.

RecordOffset

Offset to the row under the mouse cursor relative to the value in Row.

Function result

TGridZone value for the area under the mouse cursor.

Description

Nothing more than the line above yet.

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