显示进度条SysOperationProgress

static client void ShowProgressBar()

{

    #avifiles

    SysOperationProgress            simpleProgress;

    int i;

    ;

    simpleProgress = SysOperationProgress::newGeneral(#aviUpdate, 'Updating...', 100);

    for(i=1;i<=100;i++)

    {

        simpleProgress.incCount();

        simpleprogress.setText(strfmt("Task: %1/%2", i,100));

        sleep(50);

    }

}

posted @ 2011-08-10 10:13  perock  阅读(219)  评论(0编辑  收藏  举报