Answer the question
In order to leave comments, you need to log in
How to determine mouse coordinates in delphi?
In general, I need to determine the mouse coordinates and write them to the label.
In the mouseMove event I write
Form1.label4.caption := 'X = ' + IntToStr(X) + ' : ' + 'Y = ' + IntToStr(Y);
Answer the question
In order to leave comments, you need to log in
And some panel or something else that does not lie in the whole form? Your line will only work when the mouse is moving directly over the "naked" form.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question