ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table 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 Table control.
Example
// "Add additional elements at the top" event
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 2025
Table 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.
taRefreshIndicatorUpLoading 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.

WEBDEV - Browser code This parameter is not available.
<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 2025
Table 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.
taRefreshIndicatorUpLoading 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.

WEBDEV - Browser code This parameter is not available.
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.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/22/2024

Send a report | Local help