ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • "Request for refreshing the display" event
  • MVP: "Presenter" attribute
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
Warning
From version 25, this function is kept for backward compatibility. It is recommended to use ExecuteRefreshUI.
Immediately executes the "Request for refreshing the display" event of the window, page, internal window, internal page, control template or supercontrol.
If the function is called several times during a process, the refresh event will be run several times.
Remark: This function is mainly used:
Example
ExecuteRefreshUI()
Syntax
ExecuteRefreshUI([<Parameter 1> [... [, <Parameter N>]]])
<Parameter 1>: Type of value expected by the event "Request for refreshing the display"
First parameter that will be passed to the event "Request for refreshing the display" of the window or page.
<Parameter N>: Type of value expected by the event "Request for refreshing the display"
Nth parameter that will be passed to the event "Request for refreshing the display" of the window or page.
Remarks

"Request for refreshing the display" event

One of the events associated with the window (or page) is "Request for refreshing the display". This event is used to group the code for refreshing the window (or page) controls: content of controls, state (visible, grayed, etc.), caption to refresh, etc.
This event can receive parameters. Simply declare a procedure in the event. For example:
// Request for refreshing the display
PROCÉDURE AskForRefresh(RefreshType is boolean)
This event is started upon request by the following functions:
  • RequestUpdateUI: Runs the event "Request for refreshing the display" at the end of the current process (asynchronous execution).
  • ExecuteUpdateUI: Immediately runs the event "Request for refreshing the display".
  • RequestUpdateUIParent: Runs the event "Request for refreshing the display" of the higher level at the end of the current process (asynchronous execution).
  • ExecuteRefreshUIParent: Immediately runs the event "Request for refreshing the display" of the higher level.
When these functions are called, you can specify the value of the parameters expected by "Request for refreshing the display".
Remark: The event "Request for refreshing the display" can also be immediately run by ExecuteProcess with the following syntax:
ExecuteProcess(<Element name>, trtRequestRefresh)
WINDEVWEBDEV - Server code

MVP: "Presenter" attribute

The presenter attribute is used to associate a class of the presenter layer with a view (window, page or report). This attribute is mainly used in the global declaration of the windows generated by the MVP RAD.
For example:
PROCÉDURE WIN_Table_MyExampleFile(...
gclPresenter is PTableMyExampleFile dynamic <presenter>=Null)
When this attribute is used, the call to the "Request for refreshing the display" event of the window (or page) will be triggered by:
  • any call to RequestUpdateUI from a class declared as <presenter>,
  • any call from any class associated with the <presenter> class.
For more details, see MVP RAD: "Presenter" attribute.
Business / UI classification: Neutral code
Component: wd290vm.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help