X,Y coordinates

Discussion in 'Code Samples & Tips' started by Cableguy, May 24, 2007.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi

    I wasn't too sure if I should post this Here or in BUGs Report...

    when using mouse events in portrait mode, the x,y coordinates are inverted to our perspective..
    Confused?
    If you use this code

    Sub myform_mousedown(x,y)
    msg(x&";"y)
    End Sub

    The coordinates are related ALWAYS to landscape mode, being the x the height and y the width...so in Portrait, they are inverted, being x the width and y the height...

    Hope this helps someone...
     
    Last edited: May 24, 2007
Loading...