When called from the "Request for refreshing the display" event of a supercontrol, control template, internal window or internal page, the function asks for the execution of the event "Request for refreshing the display of the higher level. (This usually means the window, but it can also be a supercontrol a control template or an internal window). This event will be run at the end of the current process.
If this function is called several times in the same process, the event "Request for refreshing the display" will only be run once at the end of the current process.
Remark: This function is mainly used:
Versions 24 and later
New in version 24
// Process records
// The graphic interface will have to be refreshed
RequestRefreshUIParent()
// -----------------------------------------------------------------
// -- Request for refreshing the display of WIN_Contact_Form
// Refresh the title of the window
MySelf.Title = gpclContactForm.p_sFullname
// Refresh the linked controls of the window
SourceToScreen()
Syntax
RequestRefreshUIParent([<Parameter 1> [... [, <Parameter N>]]])
<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 page.
<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 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 makes it possible to group the code for refreshing the controls of a window or page: 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 run upon request by the following functions:
- RequestRefreshUI: Runs the event "Request for refreshing the display" at the end of the current process (asynchronous execution).
- ExecuteRefreshUI: Immediately executes the "Request for refreshing the display" event.
Versions 27 and laterRequestRefreshUIElement: Executes the "Request for refreshing the display" event of the given element at the end of the current process (asynchronous execution).
New in version 27RequestRefreshUIElement: 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 laterExecuteRefreshUIElement: Immediately executes the "Request for refreshing the display" event of the given element.
New in version 27ExecuteRefreshUIElement: 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 the event.