| View previous topic :: View next topic |
| Author |
Message |
richhill OOo Advocate


Joined: 16 Jun 2004 Posts: 418 Location: Mesa, AZ
|
Posted: Thu Aug 19, 2004 9:39 pm Post subject: Spreadsheet: Clicking on a cell |
|
|
I've set up mouse click handler in my spreadsheet and when mouse is clicked, I know the mouse X,Y coords.
How can I convert the X,Y mouse position to a cell position (A!, B! etc)
Thanks! |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Fri Aug 20, 2004 11:21 am Post subject: |
|
|
Good question.
But probably it's not that easy, cause think of it:
What have the cells got to do with the XWindow system which is responsible for knowing where you have clicked the mousecursor? Cells are flexible in their size, so you cannot just compute it somehow.
Maybe there is some interface that might be able to use but as I am not skilled in Spreadsheets I don't know of it. Probably Andrew knows the answer to this
One thing however I can say:
I had my difficulties with positioning shapes exactly where on has clicked on a drawing page with a MouseClickHandler and I asked all around but there was no solution to it.
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
|