Creates window control
Syntax
var my_window = new Window( args );
Parameters
Parameter | Description |
---|---|
args | Object specifying window properties |
args.template |
|
args.close_button_style | Object.
|
All the parameters are not mandatory.
If the window is created with no parameters at all, its default size is 300X200px, and it is positioned when shown in the center of the form.
Description
Window is created, but not shown.
Class Hierarchy

Methods
Method | Description |
---|---|
show | Shows (opens) the window |
showModal | Shows (opens) the window in modal mode |
hide | Hides the window |
load | Loads the window's content from a template form |
loadContent | Loads the content of the window from an instance of a Group |
Examples
A window created from a template and shown.
See resulting window
See template for the window shown above (template is placed outside the form's bounds)
A window created from an instance of a Group and shown.
A window created from a template and shown above the "anchor control" - a button.
See resulting window
A window created from a template and shown at the specified coordinates (of the left top corner).
See resulting window
A window created from a template and shown below the specified rectangle.
See resulting window
Returns
Reference to created window control.