Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse object X & Y coordinates

Mouse object X and Y data members report the coordinates relative to
computer screen.

Is there a way to get mouse X and Y coordinates relative to Lookout
window similar to Panel object x and y data members?

Sergei
0 Kudos
Message 1 of 3
(2,832 Views)
Hi,

You could use an expression like :

Mouse1.X-Panel1.X

which puts it relative to the panel. But there isnt a Lookout system XY datamember. The panel XY members take this into account.

John
0 Kudos
Message 2 of 3
(2,832 Views)
Hi John,

Unfortunately Mouse1.X & Y values will change when
you resize/move/drag the Lookout window.

In other words the mouse object x & y
members are relative to computer screen
while Panel object x and y members are
relative to Lookout window.

I don't think its very wise having
two different coordinate systems in Lookout.

At least there should be a way to get the Lookout
window position (offset) within the computer screen
to make any practical use of these different coordinate
systems.

Sergei

John Dunlop wrote:

> Hi,
>
> You could use an expression like :
>
> Mouse1.X-Panel1.X
>
> which puts it relative to the panel. But there isnt a Lookout system
> XY datamember. The panel XY members take this into account.
>
> John
>
0 Kudos
Message 3 of 3
(2,832 Views)