Page 1 of 1

Screen coordinates of selected cell

Posted: Wed Oct 24, 2018 12:04 pm
by mclot
Hi,
i'm using the XLSSpreadSheet component and I want to show a lookup combo box just under left-top corner of particular cell when selected.
How do I get screen coordinates of selected cell like TCustomGrid.CellRect function or MouseToCell procedure ?

Thank you very much!
Massimo

Re: Screen coordinates of selected cell

Posted: Wed Oct 31, 2018 10:57 am
by larsa
Hello

This is fixed in the latest update. Now there is a new property, FXSS.XSSSheet.CursorArea

Use code like:

Code: Select all

ShowMessage(Format('X: %d Y: %d',[FXSS.XSSSheet.CursorArea.X1,FXSS.XSSSheet.CursorArea.Y1]));