PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Erasing the progress bar
  • Status Bar
  • Progress bar and MDI child window
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 24, Gauge is kept for backward compatibility. This function is replaced by ProgressBar.
Displays a progress bar in the status bar of current window.
Remark: The window must have a status bar.
Example
Maxim is int = 234
FOR i = 1 TO Maxim
ProgressBar(i, Maxim, "There is " + (Maxim-i)*100/Maxim + "% left")
END
Syntax

Displaying the progress bar Hide the details

ProgressBar(<Value of Progress Bar> [, <Maximum value> [, <Text of Progress Bar> [, <Color>]]])
<Value of Progress Bar>: Integer
Increment value of progress bar. This value must be included between 0 and <Maximum Value>.
<Maximum value>: Optional integer
Maximum possible value of progress bar. If this parameter is not specified, the maximum value of the progress bar is set to 100.
<Text of Progress Bar>: Optional character string
Caption displayed on the right of the progress bar. If this parameter is not specified, the text displayed has the following format: "NN%" where NN represents the percentage of <Value of Progress Bar> in relation to <Maximum Value>.
For example: 45%.
<Color>: Integer or constant (optional)
Color of progress bar. This color can correspond to:
If this parameter is not specified, the color used corresponds to the color of the selected elements. This color is defined in the display properties of the current computer (control panel, "Display" option, "Appearance" tab in Windows NT).

Erasing the progress bar

ProgressBar()
Remarks

Erasing the progress bar

If a text was displayed in the status bar before the progress bar was displayed, this text is restored when the progress bar is erased.

Status Bar

To display the status bar in a window, check "Status Bar" in the "Style" tab of the window description.
WINDEVJavaUser code (UMC)

Progress bar and MDI child window

ProgressBar, used from an MDI child window without status bar, uses the status bar of the parent window.
Component : wd250obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment