本文整理自网络,侵删。
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);begin { First call FillRect to paint the surface of the form. This removes any previously drawn lines (and anything else). } Canvas.FillRect(ClientRect); Canvas.MoveTo(0, 0); Canvas.LineTo(X, Y);end;
相关阅读 >>
Delphi decodedate、decodetime ... decodedatetime ... 分解时间
Delphi程序在win7 win8 win10下自动请求以管理员身份运行
更多相关阅读请进入《Delphi》频道 >>