Hello,
In my TWorksheetGrid I have an OnClick handler. The active cell is set to the cell that is clicked - as expected.
I also want to be able to browse the grid and right-click a cell. The handler should then give additional information on the cell. However, the cell should NOT become active in the grid.
So, I have a normal TWorksheetGridClick handler plus a TWorksheetGridMouseDown handler with a statement like if Button = mbRight then ....
The problem is that I cannot derive the cell coordinates from the X and Y values passed to the handler.
The standard TStringGrid has a MouseToCell method, used as ThisCell := StringGrid1.MouseToCell(X,Y).
TWorksheetGrid does not seem to have a MouseToCell method.
Is there an alternative?
Thanks.
Lazarus 1.6, FPSpreadsheet version dated june 17, 2017.