ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
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. Open the Table control description window.
  2. On 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.
Example
// Evénement "Rafraîchissement par tirer/Relâcher" du champ Table
// ---------------------------------------------------------
// Demande à contrôler l'affichage du bandeau de sélection car l'actualisation des
// données du champ Table va être effectuée dans un thread secondaire. 
// Dans le cas contraire, le bandeau de rafraîchissement serait automatiquement masqué à la
// fin de l'exécution du traitement.
TableRefreshVisible(TABLE_Données, True)
// Exécute l'actualisation des données du champ Table dans un thread secondaire
ThreadExecute("threadMajTable", threadNormal, ProcThreadMajTable)
//----------------------------------------------------
// Procédure de mise à jour des données du champ Table
PROCEDURE ProcThreadMajTable()
// Exécution d'une requête HTTP
HTTPRequest(...)
// Retourne dans le thread principal pour ajouter le contenu de la requête dans le champ Table
ExecuteMainThread(ProcMajTable, HTTPGetResult())
END
// ---------------------------------------------------
// Procédure de remplissage des données du champ Table
PROCEDURE ProcMajTable(sDonnees is string)
// Traitement des données reçues pour remplissage du champ Table
...
// Les données du champ Table sont à jour, on masque le bandeau de rafraîchissement
TableRefreshVisible(TABLE_Données, False)
END
Syntax

Changing the state of the refresh bar Hide the details

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

Getting the state of the 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 the control to be used. This field may 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 freezing (the example uses this method).
  • When TableRefreshVisible makes the refresh bar visible, the "Pull to refresh" event of the Table control is not executed.
    Note: It is possible to force execution of this event by using the ExecuteProcess function with the constant trtPullToRefresh.
  • To hide the refresh bar, TableRefreshVisible(False) must be called as many times as TableRefreshVisible(True) was run.
Component: wd300java.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help