PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • "Request for refreshing the display" process
  • MVP: "Presenter" attribute
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
Immediately runs the "Request for refreshing the display" process of window, internal window, control template or supercontrol.
If the function is called several times during an event, the update process will be run several times.
Note: This function is mainly used:
Android Caution: This function is available for the Android applications from version 200066.
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
ExecuteUpdateUI()
Syntax
ExecuteUpdateUI([<Parameter 1> [, <Parameter 2> [ , ... ]]])
<Parameter 1>: Type of value expected by the "Request for refreshing the display" process
First parameter that will be passed to the "Request for refreshing the display" process of window.
<Parameter 2>: Type of value expected by the "Request for refreshing the display" process
Second parameter that will be passed to the "Request for refreshing the display" process of window.
Remarks

"Request for refreshing the display" process

One of the processes associated with the window is the "Request for refreshing the display" process. This process is used to group the code for updating the window controls: content of controls, status (visible, grayed, ...), static to update, ...
This process may expect parameters. All you have to do is declare a procedure in the process. For example:
// Request for refreshing the display
PROCÉDURE AskForRefresh(RefreshType is boolean)
This process is started upon request by the following functions:
  • RequestUpdateUI: Runs the process at the end of current process (asynchronous execution).
  • ExecuteUpdateUI: Runs the process immediately.
  • Versions 22 and later
    RequestUpdateUIParent: Runs the process of higher level at the end of current process (asynchronous execution).
    New in version 22
    RequestUpdateUIParent: Runs the process of higher level at the end of current process (asynchronous execution).
    RequestUpdateUIParent: Runs the process of higher level at the end of current process (asynchronous execution).
  • Versions 22 and later
    ExecuteUpdateUIParent: Immediately runs the process of higher level.
    New in version 22
    ExecuteUpdateUIParent: Immediately runs the process of higher level.
    ExecuteUpdateUIParent: Immediately runs the process of higher level.
During the call to these functions, you have the ability to specify the value of parameters expected by the process.
Note: The "Request for refreshing the display" process can also be immediately run by ExecuteProcess with the following syntax:
ExecuteProcess(<Element Name>, trtRequestUpdate)
WINDEV

MVP: "Presenter" attribute

The presenter attribute is used during the global declaration of the windows generated by the MVP RAD. It is used to associate a class of the presenter layer with a view (window or report).
For example:
PROCÉDURE WIN_Table_MyExampleFile(...
gclPresenter is PTableMyExampleFile dynamic <presenter>=Null)
Via this attribute, the call to the "Request for refreshing the display" process of window will be triggered by:
  • any call to RequestUpdateUI from a class declared as <presenter>,
  • any call from any class associated with the <presenter> class.
See MVP RAD: "Presenter" attribute for more details.
Components
WINDEVReports and Queries wd230vm.dll
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment