C cq_wj Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-11 #1 我想在编程中用延迟几秒的函数来打开另外一个窗体,不知能否实现?
Z zeroworld Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-11 #3 最好还是用Timer实现 Sleep会造成程序没有响应的
教 教父 Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-11 #4 procedure Wait(const Sec: Word); var wStart:LongWord; begin wStart:=GetTickCount; while (GetTickCount-wStart) < (Sec*1000)do Application.ProcessMessages; end;
procedure Wait(const Sec: Word); var wStart:LongWord; begin wStart:=GetTickCount; while (GetTickCount-wStart) < (Sec*1000)do Application.ProcessMessages; end;