ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
// Event "Adding additional elements"
LooperAddInProgress(LOOP_MyLooper, True)
ThreadExécute(myProcGetAdditionalResult)
 
// -----
PROCÉDURE myProcGetAdditionalResult()
 
QRY_MoreData.MinID = LOOP_MyLooper[LOOP_MyLooper.Count].ID
HExecuteQuery(QRY_MoreData) // Run a long query
HReadFirst(QRY_MoreData)
WHILE NOT HOut(QRY_MoreData)
// Add elements to the Looper control from the main thread
// to modify the UI
// AddIntoMainThead will use the WLanguage ExecuteMainThread function
AddIntoMainThead(LOOP_MyLooper, QRY_MoreData.Title, ...
QRY_MoreData.Photo, QRY_MoreData.ArticleID)
HReadNext(QRY_MoreData)
END
 
LooperAddInProgress(LOOP_MyLooper, False)
Syntax

Modifying the visibility status of internal wait window Hide the details

LooperAddInProgress(<Looper control> , <Visible>)
<Looper control>: Control name
Name of the Looper control to be used.
<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>)
<Result>: Boolean
  • True if the internal wait window is displayed,
  • False otherwise.
<Looper control>: Control name
Name of the Looper control to be used.
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: wd290obj.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help