LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

coordinates of table cell

I am looking for a way to get the x,y coordinates of a slected table cell. This coordinate information will then be used to RunPopupMenu at the active cell site. The mouse coordinates do not work in this case since I am allowing data entry to a table using arrow keys, so the mouse cursor could be somewhere else entirely. I saw the function MakeTableCellfromPoint and was wondering if there is an inverse function that would generate a x,y point relative to the control based on a known table cell?

Thanks
0 Kudos
Message 1 of 2
(3,069 Views)
You can use GetTableCellRangeRect. It returns the panel coordinates of a specified range of cells. The range can be one cell or many cells. The function will return to you the panel coordinates in the Rect structure (top, left, height, width).

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,069 Views)