PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Erasing the progress bar
  • Status bar
  • Progress bar and MDI child window
  • Limitations
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
Displays a progress bar in the status bar of current window.
Note: The window must have a status bar.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Example
Maxim is int = 234
FOR i = 1 to Maxim
Gauge(i, Maxim, "There is " + (Maxim-i)*100/Maxim + "% left")
END
Syntax

Displaying the progress bar Hide the details

Gauge(<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 corresponds 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

Gauge()
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

Gauge used from an MDI child window without status bar is using the status bar of the parent window.
AndroidAndroid Widget

Limitations

The following limitations exist for Android:
  • The progress bar will be displayed on the maximized windows that include a title bar.
  • The text or the color of the progress bar cannot be specified.
  • The maximum value of the progress bar must be included between 0 and 10000.
  • The progress bar is automatically hidden when it reaches its maximum value. The call to Gauge without parameter is used to hide the progress bar before it reaches its maximum value.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo Gauge
Exemplo Gauge

n_numero_registros is int=HNbRec(cliente)
n_soma is int=0
FOR EACH cliente
STC_NoName1=cliente.razao_social_nome
n_soma++
n_falta is int=(n_numero_registros-n_soma)*100/n_numero_registros
Gauge(n_soma,n_numero_registros,"Falta :"+ n_falta + "%")
END

//Blog com Video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/07/curso-windev-funcoes-dialogo-8-gauge.html
https://www.youtube.com/watch?v=B8J1g-gBShs
De matos AMARILDO
Jul. 19 2016
Barra de Progresso
Barra de Progresso -
//esse nao precisa ser criado barra de progresso
//pois ele faz isso na barra de status automaticamente
n_tamanho_total is int = 10000
n_tamanho_somando is int=0
FOR n_tamanho_somando=1 TO n_tamanho_total
Gauge(n_tamanho_somando,n_tamanho_total,"",CyanPastel)
// Tem de Estar Marcado ==> Barra de Status // Status Bar // Barra Mensagem
END
//-----------------------
//Blog com Video e explicacao
//----------
//http://windevdesenvolvimento.blogspot.com.br/2016/01/windev21-curso-203-gauge-progresso.html
//http://windevdesenvolvimento.blogspot.com.br/2016/01/windev21-curso-204-barra-de-progresso.html
De matos AMARILDO
Jan. 03 2016
Barra de Progresso
//esse nao precisa ser criado barra de progresso
//pois ele faz isso na barra de status automaticamente
n_tamanho_total is int = 10000
n_tamanho_somando is int=0
FOR n_tamanho_somando=1 TO n_tamanho_total
Gauge(n_tamanho_somando,n_tamanho_total,"",CyanPastel)
// Tem de Estar Marcado ==> Barra de Status // Status Bar // Barra Mensagem
END
De matos AMARILDO
Jan. 03 2016