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

TCustomDBGrid.MouseToRecordOffset

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

Declaration

Source position: dbgrids.pas line 547

public function TCustomDBGrid.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.