LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you get the screen/panel coordinates of a clicked table cell?

I have a table and need to know the screen/panel coordiates of the selected("editing") cell.
Is there a property or method that will return the upper left corner and the height and
width of the cell?

Thanks,
JD
0 Kudos
Message 1 of 3
(2,630 Views)
The cell size can be easily accessed with a property node. There is no direct function that returns the cell coordinates. However, they can be calculated with some play with the property nodes. You need to take into account the thickness of the separator lines (1 pixel) and of the table frame, and hide the label and caption.
For the fun, I have added a moving STOP button, that fits the selected cell. Most funny, I found that the button size must be increased by one to fit the cell size successfully. Means that there is a small bug, probably in the cell size property node !

See the attached vi

Happy New Wires !

CC
Chilly Charly    (aka CC)
Message 2 of 3
(2,624 Views)
CC,

Thanks for the info and example that is exactly what I was look for!

JD
0 Kudos
Message 3 of 3
(2,616 Views)