RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.MouseCoord Method

Returns the row and column indexes of the cell that contains a point specified in screen coordinates.

Pascal
function MouseCoord(X: Integer; Y: Integer): TGridCoord;
C++
__fastcall TGridCoord MouseCoord(int X, int Y);

Call MouseCoord to locate the column and row of the cell which contains a given screen coordinate. Usually, MouseCoord is used to locate the cell that is under the mouse. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!