PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 27 feature!
  • "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
Immediately executes the "Request for refreshing the display" event of the given element: 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
ExecuteRefreshUIElement(WIN_Child)
Syntax
ExecuteRefreshUIElement(<Element> [, <Parameter 1> [... [, <Parameter N>]]])
<Element>: Name of window or page
Element for which the "Request for refreshing the display" event must be executed. This element can correspond to:
  • the name of a window, page, internal window or page, window or page template.
  • the name of a control with the "Request for refreshing the display" WLanguage event: internal window, internal page, control template, supercontrol, etc.
<Parameter 1>: Optional parameter corresponding to the type expected by the event "Request for refreshing the display"
First parameter that will be passed to the "Request for refreshing the display" event of the window or control.
<Parameter N>: Type of value expected by the "Request for refreshing the display" event
Nth parameter that will be passed to the "Request for refreshing the display" event of the window or control.
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: contents of controls, state (visible, grayed out...), text to refresh, etc.
This event can receive parameters. Simply declare a procedure in the event. For example:
// Request for refreshing the display
PROCEDURE AskForRefresh(RefreshType is boolean)
This event is started upon request by the following functions:
  • RequestRefreshUI: Executes the "Request for refreshing the display" event at the end of the current process (asynchronous execution).
  • ExecuteRefreshUI: Immediately executes the "Request for refreshing the display" event.
  • Versions 27 and later
    RequestRefreshUIElement: Executes the "Request for refreshing the display" event of the given element at the end of the current process (asynchronous execution).
    New in version 27
    RequestRefreshUIElement: Executes the "Request for refreshing the display" event of the given element at the end of the current process (asynchronous execution).
    RequestRefreshUIElement: Executes the "Request for refreshing the display" event of the given element at the end of the current process (asynchronous execution).
  • Versions 27 and later
    ExecuteRefreshUIElement: Immediately executes the "Request for refreshing the display" event of the given element.
    New in version 27
    ExecuteRefreshUIElement: Immediately executes the "Request for refreshing the display" event of the given element.
    ExecuteRefreshUIElement: Immediately executes the "Request for refreshing the display" event of the given element.
  • RequestRefreshUIParent: Executes the "Request for refreshing the display" event of the higher level at the end of the current process (asynchronous execution).
  • ExecuteRefreshUIParent: Immediately executes the "Request for refreshing the display" event 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 "Request for refreshing the display" event can also be immediately executed by ExecuteProcess with the following syntax:
ExecuteProcess(<Element name>, trtRequestRefresh)
WINDEVWEBDEV - Server codeiPhone/iPad

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:
PROCEDURE 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 RequestRefreshUI from a class declared as <presenter>,
  • any call from any class associated with the <presenter> class.
For more details, see MVP RAD: "Presenter" attribute.
Component: wd270.dll
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment