📄 鼠标移动控件-自动.txt
字号:
再增加一个几何(Shape)控件
把定时器事件的代码改为
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if Label1.Caption='向上' then
Shape1.Top:=Shape1.Top-5;
if Label1.Caption='向左' then
Shape1.Left:=Shape1.Left-5;
if Label1.Caption='向下' then
Shape1.Top:=Shape1.Top+5;
if Label1.Caption='向右' then
Shape1.Left:=Shape1.Left+5;
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -