How to get mouse position within a cell TMSFMXGrid


I draw horizontal bitmaps inside a TMSFMXGrid.cell
And now I like to get the clicked position within the Cell.
Sort of the opposite of TMSFMXGrid1.XYToCell(pos.X, pos.Y)

something like pos := TMSFMXGrid1.CellToXY(col,row)

Thank you for any information

You can use:

  ctl: TControl;

ctl := TMSFMXGrid1.GetCell(Cell(1,1));

and get the cell rectangle with ctl.Position.X, ctl.Position.Y

Thanks a lot for the quick response.
I'll try it

It's working !