PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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. In the "Details" tab, in the "Moves and gestures" area, check "Pull to refresh".
  3. Validate.
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
// 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
ThreadExécute("threadMajTable", threadNormal, ProcThreadMajTable)
//----------------------------------------------------
// Procédure de mise à jour des données du champ Table
PROCÉDURE 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
PROCÉDURE 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

Modifying the visibility status of refresh bar Hide the details

TableRefreshVisible(<Table control> , <Visible>)
<Table control>: Control name
Name of the control to be used. 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 the control to be used. 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 event "Refreshing by pull/release" of the Table control is not run.
    Remark: It is possible to force the execution of this event by using the ExecuteProcess function with the trtPullToRefreshconstant.
  • To hide the refresh banner, it is necessary to call TableRefreshVisible(False) as many times as TableRefreshVisible(True) has been executed.
Component: wd270java.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment