ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • Events run
  • Opening variable
  • Miscellaneous
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
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.
Example
// Initialize the controls to zero and runs their initialization processes
InitWindow()
Syntax
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.
Remarks

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.

Miscellaneous

  • 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: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help