Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 556
  • Last Modified:

TPoint

How to extract X and Y from Tpoint value
0
urosv
Asked:
urosv
  • 2
1 Solution
 
nnbbb09Commented:

You should just be able to reference the x and y fields of the TPoint record; so if your TPoint reference is called MyPoint you can reference MyPoint.X and MyPoint.Y
0
 
nnbbb09Commented:
For example; the global mouse variable has a property called CursorPos which is of type TPoint, so to find out the x and y of the mouse you can use Mouse.CursorPos.X and Mouse.CursorPos.Y
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now