procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin Label1.Caption:=Format('(%d, %d)',[X, Y]); end;