Class: TEgDBGridEx
procedure PointInCellRect(P: TPoint; var R: TRect);
Converts a screen point P (for example, from
Mouse.CursorPos or a mouse event’s absolute coordinates) to
the bounding TRect of the data cell under it, in
R. Correctly accounts for the fixed indicator column when
dgIndicator is in Options, unlike the
now-removed PointToCellRect (superseded by this method).
Returns an empty rectangle (0, 0, 0, 0) if the point falls
outside any cell.