Acquire Input Data
In order to relate the mouse cursor position to the positions of most front panel objects, you would need the mouse cursor position relative to the pane coordinate system. The following steps explain how to calculate it programmatically.1. Place VI Server Reference (Programming»Application Control»VI Server Reference) and left-click This VI»Pane»Pane. Right-click Pane»Create»Property for Pane Class»Originand wire it to This VI. Read the Horizontal and Vertical coordinates included in the cluster outputted from the property node. This is the position of the upper left corner of the pane relative to the pane coordinate system.
VI Server Reference
We add the values in this last step, as the coordinate values in Q4 in the image below are positive (+x,+y), whereas the others sectors will have negative components: Q1 (+x, -y); Q2 (-x,-y); Q3 (-x,+y).
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.