PC SOFT

WINDEV的在线文档

  • Overview of the infinite Progress Bar control
  • Creating an infinite Progress Bar control
  • Characteristics of the infinite Progress Bar control
  • Operating mode of the infinite Progress Bar control
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview of the infinite Progress Bar control
Adding a progress bar provides useful information to the end user.

Sometimes, it is not possible to predict the duration of a process and therefore it is not possible to display a progress bar corresponding to the progress status.

An infinite Progress Bar control can be used in this case. The type of progress bar displays an endless animation.

Different examples of
Different examples of "infinite" progress bars

Creating an infinite Progress Bar control
To create an infinite Progress Bar control:
  1. On the "创建" pane, in the "显示控件" group, expand "进度条" and select an infinite progress bar.
  2. Click the position where the control must be created in the window. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control.

Characteristics of the infinite Progress Bar control
In the "General" tab of the description window of an infinite Progress Bar control, you have the ability to define the type of the infinite progress bar:
  • Native linear.
  • Custom image. In this case, you have the ability to specify in the editor or by programming:
    • the image used.
      By programming, this option corresponds to ..图片.
    • the number of animation steps.
      WinDev By programming, this option corresponds to ..动画步骤数目.
    • the duration of the animation
      By programming, this option corresponds to ..动画持续时间.
    • whether the animation must be performed both ways.
      WinDev By programming, this option corresponds to ..动画来回.

Operating mode of the infinite Progress Bar control
An infinite progress bar is a progress bar that never stops.

To use an infinite progress bar in an application, we advise you to create an infinite Progress Bar control then to make it visible or invisible (..可见) according to the needs.

Note: The animation of the infinite progress bar is performed in the main thread of the application. The animation stops if the main thread is locked by a long process. The process associated with the infinite progress bar must:

  • be performed in a secondary thread.
  • be an asynchronous process.