i try to get with cell was click in the EVENT_LEFT_CLICK so i use GetTableCellFromPoint (panel, control, MakePoint(eventData1, eventData2),&the_point); like this and always the_point is (0,0) why does not it return the correct cell ?
There's a guy with the same problem. His question (the name is heedone) was posted on 4/26/2001 and answered by Chris Matthews on 4/26/2001. You should be able to find that answer. I attached the question below.
Hope I could help you
Nose
"I want to get the indices of a cell which is clicked by mouse. I used the GetTableCellFromPoint() function but it doesn't work well. If I click the cell(2,4), it returns (0,0). Please tell me about the solution for the problem. If you have any idea, please let me know it. Thank you"
You need to invert the order of the coordinates you are passing to MakePoint. eventData1 is the vertical (y-axis) position of the mouse and eventData2 is the horizontal (x-axis) position of the mouse. So you function should include MakePoint(evenData2, eventData1).