PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
// [Adding additional elements] process
LooperAddInProgress(LOOP_MyLooper, True)
ThreadExecute(myProcGetAdditionalResult)


// -----
PROCÉDURE myProcGetAdditionalResult()

QRY_MoreData.MinID = LOOP_MyLooper[LOOP_MyLooper..Occurrence].ID
HExecuteQuery(QRY_MoreData) // Run a long query
HReadFirst(QRY_MoreData)
WHILE not HOut(QRY_MoreData)
// Adds elements to the looper from the main thread to modify the GUI
   // 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 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> = LooperAddInProgress(<Looper Control>)
<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, an internal wait window (containing a Progress Bar control) is displayed above the rows of Looper control while the additional data is added into the control. This wait window is hidden at the end of execution of "Adding additional elements" process.
  • 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 being locked (the example is using this method).
  • When the wait window is made visible by LooperAddInProgress, the "Adding additional elements" process of Looper control is not run.
  • To hide the refresh bar, LooperAddInProgress(False) must be called as many times as LooperAddInProgress(True) was run.
Components
WINDEVReports and Queries wd230obj.dll
Android wd230android.jar
Minimum required version
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment