Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Mouse.CursorPos is the mouse position now. The coords passed to the event handler are the coords when the mouse went down. So Mouse.CursorPos is wrong here. The coords passed to the event handler are client coords. Commented Dec 8, 2011 at 18:14
  • I am not getting the mouse cursor. I tried using it and it is drawing the figure at center of the form. I read something like this in delphi developers guide which uses the code procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin Canvas.TextOut(X, Y, 'Here!');{ write text at (X, Y) } end; But even this is not responding to the mouse event if I click on the form. Commented Dec 9, 2011 at 20:06