The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function MouseCell (X, Y: Integer): TGridCoord;

The function MouseCell returns the cell coordinates of the point [X,Y], if the point is given in pixels. The returned cell coordinates refer to the report list grid as follows:

both result.x > 0
and result.y > 0
point is in the data area, returned cell coordinates are in the range 1..NrOfColumns and 1..NrOfRows, respectively.
result.y = 0 and result.x = 0 point is outside the data area (but within the component area)
result.y = -1 point is over column header
result.y = -2 point is over common header

Last Update: 2012-Oct-20