pro_step:=progressbar1.Max Div recycle_length;//recycle_length=你所要执行程序的循环长度
For id:=1 To recycle_length Do
Begin
你所要执行的循环程序;
progressbar1.position:=progressbar1.position+pro_step;
progressbar1.refresh;
End;
End;
progressbar1.position:=0;
progressbar1.Max:=10000;//总时间
progressbar1.min:=0;
progressbar1.step:=1;//每步移动时间
for i:=1 to 10000 do
begin
dialy;//调用延时过程
函数控制每步的滚动时间。
end;
Close;//结束程序运行