|
|
|
|
|
TableAddInProgress (Function) In french: TableAjoutEnCours Modifies or returns the visibility status of internal wait window when adding additional elements into an infinite Table control.
TableAddInProgress(TABLE_TableInfinie, True)
ThreadExecute("ThreadRemplissage", threadNormal, maProcRecupResultatSuppl)
INTERNAL PROCEDURE maProcRecupResultatSuppl()
REQ_PlusDeDonnées.IDMin = TABLE_TableInfinie[TABLE_TableInfinie.Occurrence].ID
HExecuteQuery(REQ_PlusDeDonnées)
HReadFirst(REQ_PlusDeDonnées)
tabLignes is array of strings
WHILE NOT HOut(REQ_PlusDeDonnées)
Add(tabLignes, REQ_PlusDeDonnées.Titre + TAB + REQ_PlusDeDonnées.IDArticle)
HReadNext(REQ_PlusDeDonnées)
END
ExecuteMainThread(ProcAjoutDansTable)
INTERNAL PROCEDURE ProcAjoutDansTable()
FOR EACH sLigne OF tabLignes
TableAdd(TABLE_TableInfinie, sLigne)
END
TableAddInProgress(TABLE_TableInfinie, False)
END
END
Syntax
Modifying the visibility status of internal wait window Hide the details
TableAddInProgress(<Table control> [, <Filling mode>] , <Visible>)
<Table control>: Control name Name of the Table control to be used. <Filling mode>: Optional Integer constant New in version SaaSTable field filling mode: | | taRefreshIndicatorDown (Default value) | Patience window for cooling from below: elements are added after the last row of the Table field. The patience window is displayed after the last visible Row in the Table field.. | taRefreshIndicatorUp | Patience window for top cooling: elements are added before the first row of the Table field. The patience window is displayed before the first visible Row in the Table field.. |
<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> = TableAddInProgress(<Table control> [, <Filling mode>])
<Result>: Boolean - True if the internal wait window is displayed,
- False otherwise.
<Table control>: Control name Name of the Table control to be used. <Filling mode>: Optional Integer constant New in version SaaSTable field filling mode: | | taRefreshIndicatorDown (Default value) | Patience window for cooling from below: elements are added after the last row of the Table field. The patience window is displayed after the last visible Row in the Table field.. | taRefreshIndicatorUp | Patience window for top cooling: elements are added before the first row of the Table field. The patience window is displayed before the first visible Row in the Table field.. |
Remarks - When using an infinite Table control, a wait internal window (containing a Progress Bar control) is displayed above the rows of the Table control while adding additional data to the control. This wait window is hidden at the end of the "Adding additional elements" event.
- TableAddInProgress is used for example to check the display of the wait window when the data found in the Table control is refreshed in a secondary thread. This prevents the application from freezing (the example uses this method).
- When TableAddInProgress makes the wait window visible, the "Adding additional elements" event of the Table control is not run.
- To hide the refresh bar, the following code must be called:
TableAjoutEncours(<Champ Table>, Faux) as many times as the code
TableAjoutEncours(<Champ Table>, Vrai) was run.
Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|