PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Operating mode in iOS
  • Operating mode in Android
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
HourglassNetwork (Function)
In french: SablierRéseau
Displays or hides an endless progress bar:
  • in the status bar of an iOS application.
  • in the title bar of windows found in an Android application.
Example
// Display the progress bar
HourglassNetwork(True)
// Process
...
Multitask(-1)
...
// Hide the progress bar
HourglassNetwork(False)
Syntax
HourglassNetwork(<Activation>)
<Activation>: Boolean
  • True to enable the endless progress bar.
  • True to hide the endless progress bar.
Remarks
iPhone/iPad

Operating mode in iOS

If HourglassNetwork is called with the activation parameter set to True, the infinite progress bar will be displayed in the status bar of all open windows of the application as well as all the windows opened afterwards, until HourglassNetwork is called again with the activation parameter set to False.
It is recommended to use HourglassNetwork for operations on the network that may take long (e.g.: data transfer via a wireless connection, etc.). In this case, this function should be used rather than HourGlass.
Remark: We advise you to add calls to Multitask in the code in order to give time to the progress bar to refresh its display.
Android

Operating mode in Android

If HourglassNetwork is called with the activation parameter set to True, the infinite progress bar will be displayed in the title bar (or ActionBar) of all open windows of the application as well as all the windows opened afterwards, until HourglassNetwork is called again with the activation parameter set to False.
Notes:
  • When running long processes, we advise you to add calls to Multitask in the code in order to give time to the progress bar to refresh its display.
  • You can also use HourGlass. In this case, the endless progress bar is displayed in a specific window.
  • The display of progress bars in the ActionBar using the Material Design them is not supported by the system. HourglassNetwork will have no effect if the window contains an ActionBar control and if "Enable the Material Design theme" was checked in the options of the Android configuration.
Related Examples:
WM_System Cross-platform examples (WINDEV Mobile): WM_System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- LED
- Vibration
- Notifications
- Drawing functions
- Internet
Business / UI classification: UI Code
Component: wd260android.aar
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment