PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
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"
ZR_MaZoneRépétée.AjoutEnCours(Vrai)
ThreadExecute(maProcRécupRésultatSuppl)

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

REQ_PlusDeDonnées.IDMin = ZR_MaZoneRépétée[ZR_MaZoneRépétée.Occurrence].ID
REQ_PlusDeDonnées.ExécuteRequête() // Exécution d'une requête longue
HLitPremier(REQ_PlusDeDonnées)
TANTQUE PAS HEnDehors(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)
REQ_PlusDeDonnées.HLitSuivant()
FIN

ZR_MaZoneRépétée.AjoutEnCours(Faux)
Syntax

Modifying the visibility status of internal wait window Hide the details

<Looper control>.AddInProgress(<Visible>)
<Looper control>: Control name
Name of Looper control to use.
<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> = <Looper control>.AddInProgress()
<Result>: Boolean
  • True if the internal wait window is displayed,
  • False otherwise.
<Looper control>: Control name
Name of Looper control to use.
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 event "Adding additional elements".
  • <Looper>.AddInProgress 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 being locked (the example is using this method).
  • When <Looper>.AddInProgress makes the wait window visible, the event "Adding additional elements" of the Looper control is not run.
  • To hide the refresh bar, <Looper>.AddInProgress(False) must be called as many times as <Looper>.AddInProgress(True) was run.
Component: wd260obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment