ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Looper functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Modifies or returns the visibility status of internal wait window when adding additional elements into an infinite Looper control.
Example
// Evénement "Ajout d'éléments supplémentaires"
LooperAddInProgress(ZR_MaZoneRépétée, True)
ThreadExecute(maProcRécupRésultatSuppl)

// -----
PROCEDURE maProcRécupRésultatSuppl()

REQ_PlusDeDonnées.IDMin = ZR_MaZoneRépétée[ZR_MaZoneRépétée.Occurrence].ID
HExecuteQuery(REQ_PlusDeDonnées)	// Exécution d'une requête longue
HReadFirst(REQ_PlusDeDonnées)
WHILE NOT HOut(REQ_PlusDeDonnées)
	// Ajoute des éléments au champ Zone répétée depuis le thread principal 
	// pour modifier l'interface (UI)
	// AjouteDansTheadPrincipal utilisera la fonction WLangage ExécuteThreadPrincipal
	AjouteDansTheadPrincipal(ZR_MaZoneRépétée, REQ_PlusDeDonnées.Titre, ...
		REQ_PlusDeDonnées.Photo, REQ_PlusDeDonnées.IDArticle)
	HReadNext(REQ_PlusDeDonnées) 
END

LooperAddInProgress(ZR_MaZoneRépétée, False)
Syntax

Modifying the visibility status of internal wait window Hide the details

LooperAddInProgress(<Looper control> [, <Filling mode>] , <Visible>)
<Looper control>: Control name
Name of the Looper control to be used.
<Filling mode>: Optional Integer constant
New in version SaaS
Field filling mode Repeated zone:
taRefreshIndicatorDown
(Default value)
Patience window for cooling from below: elements are added after the last repetition of the Repeated zone field. The patience window is displayed after the last visible repeat of the Repeated zone field..
taRefreshIndicatorUpPatience window for top cooling: elements are added before the first repetition of the Repeated zone field. The patience window is displayed before the first visible repeat of the Repeated zone field..

WEBDEV - Browser code This parameter is not available.
<Visible>: Boolean
  • True to display the internal wait window,
  • False to hide it.

Retrieving the visibility status of internal wait window Hide the details

<Result> = LooperAddInProgress(<Looper control> [, <Filling mode>])
<Result>: Boolean
  • True if the internal wait window is displayed,
  • False otherwise.
<Looper control>: Control name
Name of the Looper control to be used.
<Filling mode>: Optional Integer constant
New in version SaaS
Field filling mode Repeated zone:
taRefreshIndicatorDown
(Default value)
Patience window for cooling from below: elements are added after the last repetition of the Repeated zone field. The patience window is displayed after the last visible repeat of the Repeated zone field..
taRefreshIndicatorUpPatience window for top cooling: elements are added before the first repetition of the Repeated zone field. The patience window is displayed before the first visible repeat of the Repeated zone field..

WEBDEV - Browser code This parameter is not available.
Remarks
  • When using an infinite Looper control, an internal wait window (containing a Progress Bar control) is displayed above the rows of the Looper control while additional data is being added. This wait window is hidden at the end of the "Adding additional elements" event.
  • LooperAddInProgress is used for example to check the display of wait window when the data found in the Looper control is refreshed in a secondary thread. This prevents the application from freezing (the example uses this method).
  • When LooperAddInProgress makes the wait window visible, the "Adding additional elements" event of the Looper control is not run.
  • To hide the refresh bar, LooperAddInProgress(False) must be called as many times as LooperAddInProgress(True) was run.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/15/2024

Send a report | Local help