|
|
|
|
|
WinRefreshVisible (Function) In french: FenRafraîchissementVisible Modifies or returns the visibility state of the refresh bar in a window. This function can be used when the window supports the "Pull-to-refresh" option. To enable this option in a window: - Open the window description.
- On the "Details" tab, in the "Other parameters" area, check "Pull to refresh".
- Validate.
WinRefreshVisible(FEN_Produits, True)
ThreadExecute("threadMajFen", threadNormal, ProcThreadMajFen)
PROCEDURE ProcThreadMajFen()
HTTPRequest(...
ExecuteMainThread(ProcMajUI, HTTPGetResult())
END
PROCEDURE ProcMajUI(sDonnees is string)
WinRefreshVisible(FEN_Produits, False)
END
Syntax
Changing the state of the refresh bar Hide the details
WinRefreshVisible(<Window> , <Visible>)
<Window>: Window name Name of the window to be used. <Visible>: Boolean - True to display the refresh bar,
- False to hide it.
Getting the state of the refresh bar Hide the details
<Result> = WinRefreshVisible(<Window>)
<Result>: Boolean - True if the refresh bar is displayed,
- False if the refresh bar is hidden.
<Window>: Window name Name of the window to be used. Remarks - During a "Pull to refresh", the refresh bar corresponds to the area displayed at the top of window during the data refresh.
- WinRefreshVisible is used for example to check the display of refresh bar when the data found in the window is refreshed in a secondary thread. This prevents the application from freezing (the example uses this method).
- When the refresh bar is shown by WinRefreshVisible, the "Pull to refresh" event of the window is not executed.
Note: It is possible to force execution of this event by using function ExecuteProcess with constant trtPullToRefresh. - To hide the refresh bar, WinRefreshVisible(False) must be called as many times as WinRefreshVisible(True) was run.
Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|