procedure TForm1.FormClick(Sender : TObject);
var
mp : TPoint;
begin
mp := Mouse.CursorPos; //in screen coordinates
mp := {AnyControl.}ScreenToClient(Mouse.CursorPos); //in form (or any other control coordinates)
ShowMessageFmt('click: [%d:%d]', [mp.x, mp.y]);
end;