PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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:
  1. Display the description window of Table control.
  2. In the "Details" tab, in the "Moves and gestures" area, check "Pull to refresh".
  3. Validate.
WINDEV 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
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// "Pull to refresh" process of Table control
// ---------------------------------------------------------
// Asks to check the display of selection bar because the refresh of
// table 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 thread
ThreadExecute("ThreadUpdTable", threadNormal, ProcThreadUpdTable)
//----------------------------------------------------
// Procedure used to update the data in the Table control
PROCÉDURE ProcThreadTableUpdate()
// Run an HTTP request
HTTPRequest(...)
// Goes back to the main thread to add the request content into the Table control
ExecuteMainThread(ProcUpdTable, HTTPGetResult())
END
// ---------------------------------------------------
// Procedure for filling the table data
PROCÉDURE ProcUpdateTable(sData is string)
// Process the received data for filling the table
...
// The table data is updated, hide the refresh bar
TableRefreshVisible(TABLE_Data, False)
END
Syntax

Modifying the visibility status of refresh bar Hide the details

TableRefreshVisible(<Table Control> , <Visible>)
<Table Control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Visible>: Boolean
  • True to display the refresh bar,
  • False to hide it.

Finding out the visibility status of refresh bar Hide the details

<Result> = TableRefreshVisible(<Table Control>)
<Result>: Boolean
  • True if the refresh bar is displayed,
  • False if the refresh bar is hidden.
<Table Control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
Remarks
  • 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 "Refresh by pull/release" process of Table control is not run.
    Note: To force the execution of this process, use ExecuteProcess associated with the trtPullToRefresh constant.
  • To hide the refresh bar, TableRefreshVisible(False) must be called as many times as TableRefreshVisible(True) was run.
Components
WINDEVReports and Queries wd230java.dll
Android wd230android.jar
Minimum required version
  • Version 20
Comments
Click [Add] to post a comment