|
|
|
|
|
<Looper>.AddInProgress (Function) In french: <Zone répétée>.AjoutEnCours Modifies or returns the visibility status of internal wait window when adding additional elements into an infinite Looper control. // Event "Adding additional elements" 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 visibility state of the internal wait 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 SaaSField filling mode Repeated zone: | | taRefreshIndicatorDown (Default value) | Patience window for cooling from below: elements are added after the last repetition of the Repeated zone field. The patience window is displayed after the last visible repeat of the Repeated zone field.. | taRefreshIndicatorUp | Patience window for top cooling: elements are added before the first repetition of the Repeated zone field. The patience window is displayed before the first visible repeat of the Repeated zone field.. |
<Visible>: Boolean - True to display the internal wait window,
- False to hide it.
Getting the visibility state of the internal wait window Hide the details
<Result> = <Looper control>.AddInProgress([<Population mode>])
<Result>: Boolean - True if the internal wait 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 SaaSField filling mode Repeated zone: | | taRefreshIndicatorDown (Default value) | Patience window for cooling from below: elements are added after the last repetition of the Repeated zone field. The patience window is displayed after the last visible repeat of the Repeated zone field.. | taRefreshIndicatorUp | Patience window for top cooling: elements are added before the first repetition of the Repeated zone field. The patience window is displayed before the first visible repeat of the Repeated zone field.. |
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.
- <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 freezing (the example uses this method).
- When <Looper>.AddInProgress makes the wait window visible, the "Adding 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|