ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • "Request for refreshing the display" event
  • "Presenter" attribute
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Requests the execution of the "Request for refreshing the display" event of the specified element (and gives back control without waiting for the execution of the event).
This function is mainly used:
  • when refreshing the UI via threads.
  • when using "container" fields: internal window, internal page, field template, supercontrol, etc.
  • when using child windows, etc.
Example
// Save process
// The UI of the child window will have to be refreshed
RequestRefreshUIElement(WIN_Child)
// -----------------------------------------------------------------
// -- Request for refreshing the display of WIN_Child
// Refresh the title of the window
MySelf.Title = gpclContactForm.p_sFullname

// Refresh the linked controls of the window
SourceToScreen()
Syntax
RequestRefreshUIElement(<Element> [, <Parameter 1> [... [, <Parameter N>]]])
<Element>: Window, page or control name
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, control template, supercontrol, etc.
<Parameter 1>: Optional parameter corresponding to the type expected by the "Request for refreshing the display" event
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

The "Display update request" event is used to group together the field update code for the element in question: field content, status (visible, grayed, etc.), label to be updated, etc. This event is available for windows, internal windows, pages, internal pages, field templates and supercontrols.
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.
  • RequestRefreshUIElement: Executes the "Request display update" event for the specified element at the end of current processing (asynchronous launch).
  • 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".
WINDEVWEBDEV - Server codeiPhone/iPad

"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 in WINDEV.
For example:
PROCEDURE WIN_Table_MyExampleFile(...
	gclPresenter is PTableMyExampleFile dynamic<presenter>=Null)
With this attribute, the "Request for refreshing the display" window event will be triggered by:
  • any call to RequestRefreshUIElement from a class declared as <presenter>,
  • any call from any class associated with the <presenter> class.
For more details, see RAD MVP: "presentation" attribute.
Component: wd300vm.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help