Forum Discussion

czpqwerty's avatar
czpqwerty
Occasional Contributor
10 years ago

how to get the coordinate

how to get the current controls coordinate?  thx

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor

    On screen coordinates:

     

    x = Object.ScreenLeft

    y = Object.ScreenTop

     

    Form coordinates:

     

    x = Object.Left

    y = Object.Top

    • czpqwerty's avatar
      czpqwerty
      Occasional Contributor

      yes, i konw that, but i cannot get coordinate through this function

       

      Capture.PNG

       

      • Marsha_R's avatar
        Marsha_R
        Icon for Champion Level 3 rankChampion Level 3

        We could give you better information if you would show us your unit2 script and explain what you are trying to accomplish.  It's difficult to help when you make us guess at the question.