AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones del cursor del ratón
  • Miscellaneous
  • Operating mode in Android
  • Operating mode in iPhone/iPad
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Transforms the mouse cursor into hourglass and vice versa. This allows you to inform the user that a long process is performed by displaying an hourglass. For the duration of the HourGlass display, the window is inactive: the user cannot click in the window.
AndroidiPhone/iPad Displays or hides an endless progress bar.
Ejemplo
HourGlass()         // Display the hourglass
ProcProcess()  // Long process
HourGlass(False)     // Restore the initial pointer
AndroidiPhone/iPad
// Display the message in the progress bar
NextTitle("Connection...") 
HourGlass() 

// Long process
ProcProcess()  

// In Android and IOS, update the progress bar during the process.
Multitask(-1)    

// Stop the infinite progress bar
HourGlass(False)     
NextTitle("")
Sintaxis
HourGlass([<Activation>])
<Activation>: Optional constant
Activation or deactivation constant:
FalseCancels the hourglass that was enabled last. If this houglass is the only one that is enabled, the mouse cursor takes its initial shape.
falseAllHourglassCancels all current hourglasses to restore the initial shape of mouse cursor.
iPhone/iPad Deletes the infinite progress bar.
True
(Default value)
Enables the hourglass.
Observaciones

Miscellaneous

  • To restore the cursor to its initial status:
    • call HourGlass(False) as many times as HourGlass(True) was run.
    • use the falseAllHourglass constant.
  • When a WLanguage process ends, the cursor is automatically restored to its standard shape.
Android

Operating mode in Android

Using HourGlass triggers the display of an infinite progress bar. The application interface can no longer be handled by the user as long as the hourglass is displayed.
By default, no message is displayed beside the progress bar.
The following actions can be performed:
  • To display a message, use NextTitle.
  • To change the message while the progress bar is displayed, simply run NextTitle again, and then run HourGlass.
  • To hide the progress bar, use HourGlass with <Activation> = False as many times as HourGlass was called with <Activation> = True.
Note When running long processes, we recommend adding calls to function Multitask in the code, to give the ProgressBar time to refresh its display.
iPhone/iPad

Operating mode in iPhone/iPad

Using HourGlass triggers the display of an infinite progress bar. The application interface can no longer be handled by the user as long as the hourglass is displayed.
By default, no message is displayed beside the progress bar.
To display a message, use NextTitle.
Note When running long processes, we recommend adding calls to function Multitask in the code, to give the ProgressBar time to refresh its display.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Video HourGlass
https://youtu.be/tpuThghZguE
https://windevdesenvolvimento.blogspot.com/2019/09/dicas-2282-windev-webdev-mobile.html
// BTN_DIRETORIO_LISTA
HourGlass(True)
s_arquivos_todos is string=fListDirectory(EDT_DIRETORIO)
s_arquivo_individual is string=""
TVT_DIRETORIO.DeleteAll()
FOR EACH STRING s_arquivo_individual OF s_arquivos_todos SEPARATED BY CR
nPOSICAO is int=TVT_DIRETORIO.AddLine()
TVT_DIRETORIO.COL_01_DIRETORIO[nPOSICAO]=s_arquivo_individual
END
HourGlass()
amarildo
10 09 2019
Video HourGlass
https://youtu.be/gKsEf55d_-w

https://windevdesenvolvimento.blogspot.com/2019/06/dicas-2156-windev-webdev-mobile.html

// btn_lupa_ampuleta_aguarde_hourglass
HourGlass()
// PROCESSO
FOR nContador = 1 TO 40000
trace(nContador)
END
//FINAL PROCESSO
HourGlass ( False )
amarildo
14 06 2019
Video HourGlass
https://youtu.be/nlNN6dTlIgA

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2041-windev-comandos-45-hourglass.html

// BTN_AMPULETA_HOURGLASS
HourGlass ()
FOR nContador = 1 TO 40000
Message(nContador)
END
HourGlass ( False )
amarildo
11 03 2019

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local