X,Y coordinates

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

  1. Cableguy

    Cableguy Expert Licensed User


    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..
    If you use this code

    Sub myform_mousedown(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
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice