procedure OnMouseDown(~~~~); begin if Button<>mbLeft Then Exit; Label1.Caption:=Format('x=%d y=%d',[x,y]); end;