LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mouse coordinates (0,0) at the center of the monitor screen on computer

Is it possible to have the mouse coordinates at (0,0) at the center of the screen of the laptop /monitor of the PC instead of the top left hand corner of the computer?

0 Kudos
Message 1 of 4
(5,853 Views)

That's not possible, because its already defined that the top left corner of the screen will have 0,0 as coordinate value.

However you are free to assume 0,0 at the centre of screen, but always consider the offset (Width/2, Height/2) while implementing your assumption.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 3 of 4
(5,825 Views)

Hm, not entirely true.

The point is: "What does 0,0 refer to?"

 

Windows is using the top left corner of the primary monitor as 0,0. So my previous repliers are correct.

But when relating coordinates to specific windows, the 0,0 could be elsewhere. Typically, those relative coordinates also refer to the top left corner (0,0), but this can change.

In LV for instance, you see the relative 0,0 coordinate of the front panel by the crossing and the dot (grey) if you have the grid enabled. Initially, the dot (0,0) is located in the top left corner, but it could be moved.

 

On the other hand, there is no easy way to move 0,0 of the front panel to the center of your application window as it depends on the size of the window. You can do it though using property nodes (VI=>Panel=>Pane=>Origin).

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(5,811 Views)