Sign in Join
FPDoc Onlineexperiment

TCustomGrid.MouseCoord function

Member of TCustomGridpublicIn unit Grids

Gets the cell coordinates for the specified mouse pointer position.

Declaration

pascal
function MouseCoord(X: Integer; Y: Integer): TGridCoord

Arguments

X

Horizontal screen coordinate for the mouse pointer.

Y

Vertical screen coordinate for the mouse pointer.

Function result

TGridCood instance with the cell coordinates for the mouse pointer.

Description

MouseCoord is TGridCoord function used to get the coordinates for the mouse pointer as cell coordinates. It calls the MouseToCell method to get the TGridCoord (an alias to TPoint) instance used in the return value.

See also

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