Solved

TPoint

Posted on 2001-07-18
2
543 Views
Last Modified: 2010-04-06
How to extract X and Y from Tpoint value
0
Comment
Question by:urosv
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
nnbbb09 earned 20 total points
ID: 6295617

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
 
LVL 3

Expert Comment

by:nnbbb09
ID: 6295623
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question