ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Looper functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Gets or sets the display mode of the internal loading window used when additional elements are loaded in an Infinite Looper control.
Example
// "Add additional elements" event
LOOP_MyLooper.AddInProgress(True)
ThreadExecute(myProcGetAdditionalResult)

// -----
PROCEDURE myProcGetAdditionalResult()

QRY_MoreData.MinID = LOOP_MyLooper[LOOP_MyLooper.Count].ID
QRY_MoreData.ExecuteQuery()	// Execute a long query
REQ_MoreData.ReadFirst()
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)
	REQ_MoreData.ReadNext() 
END

LOOP_MyLooper.AddInProgress(False)
Syntax

Changing the display mode of the internal loading window Hide the details

<Looper control>.AddInProgress([<Population mode>, ] <Visible>)
<Looper control>: Control name
Name of the Looper control to be used.
<Population mode>: Optional Integer constant
New in version 2025
Looper control population mode:
taRefreshIndicatorDown
(Default value)
Loading window used when the control is refreshed from the bottom. Elements are added after the last row of the Looper control. The loading window is displayed after the last visible row of the Looper control.
taRefreshIndicatorUpLoading window used when the control is refreshed from the top. Elements are added before the first row of the Looper control. The loading window is displayed before the first visible row of the Looper control.

<Visible>: Boolean
  • True to display the internal loading window,
  • False to hide it.

Getting the display mode of the internal loading window Hide the details

<Result> = <Looper control>.AddInProgress([<Population mode>])
<Result>: Boolean
  • True if the internal loading window is displayed,
  • False otherwise.
<Looper control>: Control name
Name of the Looper control to be used.
<Population mode>: Optional Integer constant
New in version 2025
Looper control population mode:
taRefreshIndicatorDown
(Default value)
Loading window used when the control is refreshed from the bottom. Elements are added after the last row of the Looper control. The loading window is displayed after the last visible row of the Looper control.
taRefreshIndicatorUpLoading window used when the control is refreshed from the top. Elements are added before the first row of the Looper control. The loading window is displayed before the first visible row of the Looper control.

Remarks
  • When using an infinite Looper control, an internal loading window (containing a Progress Bar control) is displayed above the rows of the Looper control while additional data is being added. This loading window is hidden at the end of the "Add additional elements" event.
  • For example, <Looper>.AddInProgress is used to check whether the loading window is displayed when the data in the Looper control is refreshed in a secondary thread. This prevents the application from freezing (the example uses this method).
  • When <Looper>.AddInProgress makes the loading window visible, the "Add additional elements" event 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: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/10/2024

Send a report | Local help