LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to convert mouse coordinates of control to graph?

There is a ConvertMouseCoordinates which convert the coordinates of panel to control, but is there one that convert coordniates of control to graph?
0 Kudos
Message 1 of 2
(3,109 Views)
KenViet,

There is a function called �GetRelativeMouseState()� that returns the location of the mouse relative to a specific control:

int GetRelativeMouseState (int panelHandle, int controlID, int *xCoordinate, int *yCoordinate, int *leftButtonDown, int *rightButtonDown, int *keyModifiers);

To find out more about this function go to Help->Contents and click on the �Index� tab and type �GetRelativeMouseState()�. I hope that function does the trick for you. If not please post again. Good luck!

Craig H.
National Instruments
0 Kudos
Message 2 of 2
(3,109 Views)