var
I: Integer;
begin
for I:=0 to 7 do begin
if GetTickCount - TimerTick > 200 then begin
TimerTick := GetTickCount;
Position := I;
end;
end;
怎么I一直为0? 想减慢速度都减慢不了吗?
I: Integer;
begin
for I:=0 to 7 do begin
if GetTickCount - TimerTick > 200 then begin
TimerTick := GetTickCount;
Position := I;
end;
end;
怎么I一直为0? 想减慢速度都减慢不了吗?
解决方案 »
- 我有一个问题
- 一个ADO的数据缓冲问题
- webbrowser中如何捕获页面的window.close()操作?
- TTreeNode对象的data使用问题。
- 请大侠帮忙看一下这个关于树的递归函数有什么问题
- 哪位兄台有做过类似于QQ的东西啊?小弟急需帮助!
- 用delphi怎么实现把SQL中的存储过程显示在label的caption上呀?————某软件公司的面试题
- 内存释放的问题吗?
- 有关文件的问题,在线等待,高分相送
- delphi 微信接口开发
- 如果把APP复制一份放在同一个服务器,用不能的客户端连接不的APP,怎么区分开来的啊?
- 如何使窗口,在输入一串字符后--------------激活事件?
var
I: Integer;
TimerTick : Integer;
begin
for I:=0 to 7 do
begin
TimerTick := GetTickCount;
repeat until GetTickCount - TimerTick > 200;
Position := I;
end;
sleep(2)
application.ProcessMessages睡 2毫秒 看看
var
I: Integer;
TimerTick : Integer;
begin
for I:=0 to 7 do
begin
TimerTick := GetTickCount;
repeat
Application.ProcessMessage;
until GetTickCount - TimerTick > 200;
Position := I;
end;
end;
Application.HandleMessage似乎应该更好一点,否则很耗CPU呵呵
I: Integer;
begin
for I:=0 to 7 do begin
if GetTickCount - TimerTick > 200 then begin
TimerTick := GetTickCount;
Position := I;
end;
caption := inttostr(i);
end;这个 是没有 延长时间;但也不是你说的 I=0啊;到最后i=8;