05-28-2013 09:53 PM
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?
05-28-2013 11:21 PM
No.
05-28-2013 11:46 PM
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.
05-29-2013 03:17 AM
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