PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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 Looper control.
This function can be used when the Looper control supports the "Pull-to-refresh" option. To enable this option in a Looper control:
  1. Display the Looper control description window.
  2. 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".
  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
// Event "Pull to refresh" of a Looper control
// ---------------------------------------------------------
// Asks to check the display of selection bar because the refresh of
// Looper control data will be performed in a secondary thread.
// Otherwise, the refresh bar would be automatically hidden at the
// end of process execution.
LOOP_Data.RefreshVisible(True)
// Refreshes the data of the Looper control in a secondary thread
ThreadExecute("threadUPDLoop", threadNormal, ProcThreadUPDLoop)
// Procedure for refreshing the data of the Looper control
PROCEDURE ProcThreadUPDLoop()
// Run an HTTP request
HTTPRequest(...)
// Go back to the main thread to add the request content into the
// Looper control
ExecuteMainThread(ProcUPDLoop, HTTPGetResult())
END
// Procedure for filling data in the Looper control
PROCEDURE ProcUPDLoop(sData is string)
// Process the received data in order to fill the Looper control
...
// The Looper control data is refreshed,
// hide the refresh bar
LOOP_Data.RefreshVisible(False)
 
END
Syntax

Modifying the visibility status of refresh bar Hide the details

<Looper control>.RefreshVisible(<Visible>)
<Looper control>: Control name
Name of Looper control to use.
<Visible>: Boolean
  • True to display the refresh bar,
  • False to hide it.

Finding out the visibility status of refresh bar Hide the details

<Result> = <Looper control>.RefreshVisible()
<Result>: Boolean
  • True if the refresh bar is displayed,
  • False if the refresh bar is hidden.
<Looper control>: Control name
Name of Looper control to use.
Remarks
  • During a "Pull-to-refresh", the refresh bar corresponds to the area displayed above the cells of the Looper control during the data refresh.
  • <Looper>.RefreshVisible is used, for example, to manage how the refresh bar is displayed when the data from the Looper control is refreshed in a secondary thread. This prevents the application from being locked (the example is using this method).
  • When <Looper>.RefreshVisible makes the refresh bar visible, the event "Refreshing by pull/release" of the Looper control is not run.
    Remark: To force the execution of this event, use ExecuteProcess with the constant trtPullToRefresh.
  • To hide the refresh bar, <Looper>.RefreshVisible(False) must be called as many times as <Looper>.RefreshVisible(True) was run.
Component : wd250java.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment