Help / WLanguage / WLanguage functions / Controls, pages and windows / Window management functions
  • Events run
  • Opening variable
  • Miscellaneous
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
InitWindow (Function)
In french: InitFenêtre
AjaxNot available
Initializes (or not) the controls to zero and runs the initialization processes of the controls and the window.
WEBDEV - Server code PageInitialization can also be used.
// Initialize the controls to zero and runs their initialization processes
InitWindow([<Initialization of controls>])
<Initialization of controls>: Optional boolean
  • True (default value) if the controls must be initialized to zero before running the initialization events of the controls,
  • False if the controls must not be initialized to zero before running the initialization events of the controls.

Events run

InitWindow executes:
  • the "Initializing" event of the window,
  • the "Initializing" event of the window controls,
  • The "End of initialization" event of the window.
InitWindow does not run the event "Global declarations" of the window.

Opening variable

When the "Initializing" event of a control is run, the Opening variable is set to:
  • True if the execution of the "Initializing" event of the control was triggered when the window was opened,
  • False if the execution of the "Initializing" control event was triggered by InitWindow.
Therefore, the execution of the control initialization events can depend on the value of the Opening variable.


  • The input is performed in the first control according to the tab order defined in the editor.
  • Caution: Do not confuse InitWindow with Reset, which resets all the window controls (without running the "Initializing" event of the controls).
Component: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help