|
|
|
|
|
<Looper>.AddInProgress (Function) In french: <Zone répétée>.AjoutEnCours Gets or sets the display mode of the internal loading window used when additional elements are loaded in an Infinite Looper control.
LOOP_MyLooper.AddInProgress(True)
ThreadExecute(myProcGetAdditionalResult)
PROCEDURE myProcGetAdditionalResult()
QRY_MoreData.MinID = LOOP_MyLooper[LOOP_MyLooper.Count].ID
QRY_MoreData.ExecuteQuery()
REQ_MoreData.ReadFirst()
WHILE NOT HOut(QRY_MoreData)
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 2025Looper 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. | taRefreshIndicatorUp | Loading 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 2025Looper 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. | taRefreshIndicatorUp | Loading 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|