Screen coordinates of selected cell

Questions and answers on how to use XLSSpreadSheet.
Post Reply
mclot
Posts: 14
Joined: Wed Oct 10, 2007 7:20 am

Screen coordinates of selected cell

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Screen coordinates of selected cell

Post 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]));
Lars Arvidsson, Axolot Data
Post Reply