D
dlnew
Unregistered / Unconfirmed
GUEST, unregistred user!
放一个全局变量f:boolean;初始化f := true;
在按键事件中写入:
begin
if not f then exit
else f := false;
......//按键事件
f := true;
end;
无论用户按键多快,也快不过一句简单的if语句的执行速度。
在按键事件中写入:
begin
if not f then exit
else f := false;
......//按键事件
f := true;
end;
无论用户按键多快,也快不过一句简单的if语句的执行速度。