|
|
|
|
|
<Table>.AddInProgress (Function) In french: <Table>.AjoutEnCours Gets or sets the display mode of the internal loading window used when additional elements are loaded in an Infinite Table control.
TABLE_InfiniteTable.AddInProgress(True)
ThreadExecute("ThreadFill", threadNormal, myProcGetAdditionalResult)
INTERNAL PROCEDURE myProcGetAdditionalResult()
QRY_MoreData.MinID = TABLE_InfiniteTable[TABLE_InfiniteTable.Count].ID
QRY_MoreData.ExecuteQuery()
REQ_MoreData.ReadFirst()
arrLines is array of strings
WHILE NOT HOut(QRY_MoreData)
arrLines.Add(QRY_MoreData.Title + TAB + QRY_MoreData.ArticleID)
HReadNext(QRY_MoreData)
END
ExecuteMainThread(ProcAddIntoTable)
INTERNAL PROCEDURE ProcAddIntoTable()
FOR EACH sLine OF arrLines
TABLE_InfiniteTable.Add(sLine)
END
TABLE_InfiniteTable.AddInProgress(False)
END
END
Syntax
Changing the display mode of the internal loading window Hide the details
<Table control>.AddInProgress([<Population mode>, ] <Visible>)
<Table control>: Control name Name of the Table control to be used. <Population mode>: Optional Integer constant New in version 2025Table 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 Table control. The loading window is displayed after the last visible row of the Table control. | taRefreshIndicatorUp | Loading window used when the control is refreshed from the top. Elements are added before the first row of the Table control. The loading window is displayed before the first visible row of the Table 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> = <Table control>.AddInProgress([<Population mode>])
<Result>: Boolean - True if the internal loading window is displayed,
- False otherwise.
<Table control>: Control name Name of the Table control to be used. <Population mode>: Optional Integer constant New in version 2025Table 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 Table control. The loading window is displayed after the last visible row of the Table control. | taRefreshIndicatorUp | Loading window used when the control is refreshed from the top. Elements are added before the first row of the Table control. The loading window is displayed before the first visible row of the Table control. |
Remarks - When using an infinite Table control, an internal loading window (containing a Progress Bar control) is displayed above the rows of the Table control while additional data is being added. This loading window is hidden at the end of the "Add additional elements" event.
- <Table>.AddInProgress is used for example to check the display of the loading 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 <Table>.AddInProgress makes the loading 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
<Table control>.AddInProgress(False) as many times as the code
<Table control>.AddInProgress(True) was run.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|