用Progressbar显示数据处理的进度。但不知怎么控制Progressbar的长度和程序处理进程相对应。

解决方案 »

  1.   

    Progressbar.Max(设置最大值)
    Progressbar.Position(当前位置)
    不知道是不是你想要的东西,也许是我理解错了
      

  2.   

    比如
    Progressbar.Max:=MediaPlayer1.Length
    Progressbar.Max:=Table1.RecordCount
      

  3.   

    在数据处理中设置Progressbar.Position,Progressbar.Max为处理的数据总量
      

  4.   

    不知道是处理什么样的数据
    如果是数据集类的,直接就是max=RecordCount就行
    一点点的加就可以
    如果类似搜索,那就估算.
      

  5.   


      ProgressBar1.Position := 0;
      ProgressBar1.Max := 100;
      for time := 0 to 100 do
      begin
       //xxxxxxxxxxxxxx;(*你想干的*) 
       ProgressBar1.StepIt;
       Update;
      end;