Modifies or returns the visibility status of refresh bar in a Table or TreeView Table control.

This function can be used when the Table control supports the "Pull-to-refresh" option. To enable this option in a Table control:

Display the description window of Table control.

In the "Details" tab, in the "Moves and gestures" area, check "Pull to refresh". In the "Details" tab, in the "Moves and gestures" area, check "Pull to refresh".

Validate.

This function is available in WINDEV only in order to be used in simulator mode. Used in a WINDEV application, this function has no effect.

Versions 21 and later

This function is now available in Universal Windows 10 App mode.

New in version 21

This function is now available in Universal Windows 10 App mode.

This function is now available in Universal Windows 10 App mode.

Example

// Event "Pull to refresh" of the Table control// ---------------------------------------------------------// Asks to check the display of selection bar because the refresh of// Table control data will be performed in a secondary thread. // Otherwise, the refresh bar would be automatically hidden at the// end of process execution.TableRefreshVisible(TABLE_Data, True)// Refreshes the data of Table control in a secondary threadThreadExecute("ThreadUpdTable", threadNormal, ProcThreadUpdTable)

//----------------------------------------------------// Procedure used to update the data in the Table controlPROCEDURE ProcThreadTableUpdate()// Run an HTTP requestHTTPRequest(...)// Goes back to the main thread to add the request content into the Table controlExecuteMainThread(ProcUpdTable, HTTPGetResult())END

// ---------------------------------------------------// Procedure for filling data in the Table controlPROCEDURE ProcUpdateTable(sData is string)// Process the received data in order to fill the Table control...// The Table control data is updated, hide the refresh barTableRefreshVisible(TABLE_Data, False)END

During a "Pull to refresh", the refresh bar corresponds to the area displayed above the rows of the Table control during the data refresh.

TableRefreshVisible is used for example to check the display of refresh bar when the data found in the Table control is refreshed in a secondary thread. This prevents the application from being locked (the example is using this method).

When the refresh bar is made visible by TableRefreshVisible, the event "Refreshing by pull/release" of the Table control is not run.Remark: To force the execution of this event, use ExecuteProcess with the constant trtPullToRefresh.

To hide the refresh bar, TableRefreshVisible(False) must be called as many times as TableRefreshVisible(True) was run.