procedure TForm1.Map1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
StartX:=X;
StartY:=Y;
if end_flag=0 then
Canvas.lineTo(X,Y);
button3.Caption:='X='+inttostr(X)+',Y='+inttostr(Y);
end;这是坐标显示的代码,如果手工限定X和Y的范围
Y: Integer);
begin
StartX:=X;
StartY:=Y;
if end_flag=0 then
Canvas.lineTo(X,Y);
button3.Caption:='X='+inttostr(X)+',Y='+inttostr(Y);
end;这是坐标显示的代码,如果手工限定X和Y的范围
GetCursorPos(CurPoint);
-----------------
CurPoint.X //x 坐標
CurPoint.Y //y 坐標
我要让他从左上(5,6)到右下(10,12)这个范围