Child pages
  • JSWindow

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#DEFAULT]
Value used for x, y, width, height of initial bounds when you want the window to auto\-determine bounds when shown for the first time.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#DIALOG]
Window type constant that identifies a non\-modal dialog type.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#FULL_SCREEN]
Value that can be used for bounds in order to specify that a dialog/window should completely fill the screen.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MODAL_DIALOG]
Window type constant that identifies a modal dialog type.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#WINDOW]
Window type constant that identifies a window type.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#resizable]
Gets/Sets whether or not this window can be resized by the user (default true).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#storeBounds]
Tells whether or not the bounds of this window should be stored/persisted (default false).{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#title]
Gets/Sets the title text.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#undecorated]
Gets/Sets the undecorated property.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#destroy]\()
Frees the resources allocated by this window.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getHeight]\()
Returns the height.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getName]\()
Returns the window name.{td}{tr}{tbody}{tbody}{tr}{td}[JSWindow]{td}{td}[#getParent]\()
Returns the parent JSWindow, if available.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getType]\()
Returns the window type.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWidth]\()
Returns the width.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getX]\()
Returns the x coordinate.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getY]\()
Returns the y coordinate.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#hide]\()
Hides the window.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isVisible]\()
Returns true if the window is visible, false otherwise.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#resetBounds]\()
Deletes the window's currently stored bounds.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setInitialBounds]\(x, y, width, height)
Sets the initial window bounds.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setLocation]\(x, y)
Set the window location.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setSize]\(width, height)
Set the window size.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#show]\(form)
Shows the given form(form name, form object or JSForm) in this window.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#showTextToolbar]\(showTextToolbar)
Sets whether or not this window should have a text tool bar.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#toBack]\()
Shows this window behind other windows, if possible.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#toFront]\()
Bring this window in front of other windows, if possible.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=DEFAULT|class=node}{tr:id=name}{td}h6.DEFAULT{td}{tr}{tr:id=des}{td}{sub-section:DEFAULT_des|text=|trigger=button}{sub-section}{sub-section:DEFAULT_des|trigger=none|class=sIndent}Value used for x, y, width, height of initial bounds when you want the window to auto\-determine bounds when shown for the first time.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DEFAULT_snc|text=|trigger=button}{sub-section}{sub-section:DEFAULT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DEFAULT_prs|text=|trigger=button}{sub-section}{sub-section:DEFAULT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DEFAULT_ret|text=|trigger=button}{sub-section}{sub-section:DEFAULT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DEFAULT_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DEFAULT_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DEFAULT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_sam|trigger=none}{code:language=javascript}
// show a dialog that self-determines bounds the first time it it open, then remembers last bounds for future show operations 
var win = application.createWindow("myName", JSWindow.DIALOG);
win.setInitialBounds(JSWindow.DEFAULT, JSWindow.DEFAULT, JSWindow.DEFAULT, JSWindow.DEFAULT); // will be shown initially centred and with preferred size
forms.myForm.show(win);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DIALOG|class=node}{tr:id=name}{td}h6.DIALOG{td}{tr}{tr:id=des}{td}{sub-section:DIALOG_des|text=|trigger=button}{sub-section}{sub-section:DIALOG_des|trigger=none|class=sIndent}Window type constant that identifies a non\-modal dialog type.
Non\-modal dialogs will allow the user to interact with parent windows, but are less independent then windows with WINDOW type.
Dialogs will stay on top of parent windows and are less accessible through the OS window manager. In web\-client dialogs will not
open in a separate browser window.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DIALOG_snc|text=|trigger=button}{sub-section}{sub-section:DIALOG_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DIALOG_prs|text=|trigger=button}{sub-section}{sub-section:DIALOG_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DIALOG_ret|text=|trigger=button}{sub-section}{sub-section:DIALOG_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DIALOG_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DIALOG_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DIALOG_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DIALOG_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DIALOG_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DIALOG_sam|trigger=none}{code:language=javascript}
// create a non-modal dialog on top of current active form's window and show a form inside it
var myWindow = application.createWindow("myName", JSWindow.DIALOG);
myWindow.show(forms.myForm.show(myWindow);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FULL_SCREEN|class=node}{tr:id=name}{td}h6.FULL_SCREEN{td}{tr}{tr:id=des}{td}{sub-section:FULL_SCREEN_des|text=|trigger=button}{sub-section}{sub-section:FULL_SCREEN_des|trigger=none|class=sIndent}Value that can be used for bounds in order to specify that a dialog/window should completely fill the screen.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FULL_SCREEN_snc|text=|trigger=button}{sub-section}{sub-section:FULL_SCREEN_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FULL_SCREEN_prs|text=|trigger=button}{sub-section}{sub-section:FULL_SCREEN_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FULL_SCREEN_ret|text=|trigger=button}{sub-section}{sub-section:FULL_SCREEN_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FULL_SCREEN_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FULL_SCREEN_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FULL_SCREEN_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FULL_SCREEN_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FULL_SCREEN_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FULL_SCREEN_sam|trigger=none}{code:language=javascript}
// create and show a window, with specified title, full screen
var win = application.createWindow("windowName", JSWindow.WINDOW);
win.setInitialBounds(JSWindow.FULL_SCREEN, JSWindow.FULL_SCREEN, JSWindow.FULL_SCREEN, JSWindow.FULL_SCREEN);
win.setTitle("This is a window");
controller.show(win);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODAL_DIALOG|class=node}{tr:id=name}{td}h6.MODAL_DIALOG{td}{tr}{tr:id=des}{td}{sub-section:MODAL_DIALOG_des|text=|trigger=button}{sub-section}{sub-section:MODAL_DIALOG_des|trigger=none|class=sIndent}Window type constant that identifies a modal dialog type. Modal dialogs will not allow the user to interact with the parent window(s) until closed.
Dialogs will stay on top of parent windows and are less accessible through the OS window manager. In web\-client dialogs will not
open in a separate browser window. NOTE: no code is executed in Smart Client after a modal dialog is shown (the show operation blocks) until this dialog closes.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODAL_DIALOG_snc|text=|trigger=button}{sub-section}{sub-section:MODAL_DIALOG_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODAL_DIALOG_prs|text=|trigger=button}{sub-section}{sub-section:MODAL_DIALOG_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODAL_DIALOG_ret|text=|trigger=button}{sub-section}{sub-section:MODAL_DIALOG_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODAL_DIALOG_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODAL_DIALOG_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODAL_DIALOG_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODAL_DIALOG_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODAL_DIALOG_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MODAL_DIALOG_sam|trigger=none}{code:language=javascript}
// create a modal dialog on top of current active form's window and show a form inside it
var myWindow = application.createWindow("myName", JSWindow.MODAL_DIALOG);
myWindow.show(forms.myForm.show(myWindow);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=WINDOW|class=node}{tr:id=name}{td}h6.WINDOW{td}{tr}{tr:id=des}{td}{sub-section:WINDOW_des|text=|trigger=button}{sub-section}{sub-section:WINDOW_des|trigger=none|class=sIndent}Window type constant that identifies a window type. WINDOW type is the most independent type of window. It will be more accessible through the OS window
manager, it can appear both in front of and under other windows and it doesn't block user interaction for other windows. In web\-client windows will
open in a separate browser window.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:WINDOW_snc|text=|trigger=button}{sub-section}{sub-section:WINDOW_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:WINDOW_prs|text=|trigger=button}{sub-section}{sub-section:WINDOW_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:WINDOW_ret|text=|trigger=button}{sub-section}{sub-section:WINDOW_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:WINDOW_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WINDOW_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:WINDOW_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WINDOW_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:WINDOW_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WINDOW_sam|trigger=none}{code:language=javascript}
// create a window and show a form inside it
var myWindow = application.createWindow("myName", JSWindow.WINDOW);
myWindow.show(forms.myForm.show(myWindow);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=resizable|class=node}{tr:id=name}{td}h6.resizable{td}{tr}{tr:id=des}{td}{sub-section:resizable_des|text=|trigger=button}{sub-section}{sub-section:resizable_des|trigger=none|class=sIndent}Gets/Sets whether or not this window can be resized by the user (default true).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:resizable_snc|text=|trigger=button}{sub-section}{sub-section:resizable_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:resizable_prs|text=|trigger=button}{sub-section}{sub-section:resizable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:resizable_ret|text=|trigger=button}{sub-section}{sub-section:resizable_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:resizable_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:resizable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:resizable_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:resizable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:resizable_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:resizable_sam|trigger=none}{code:language=javascript}
var someWindow = application.getWindow("someWindowName");
if (someWindow.isVisible() == false) { 
	controller.show(someWindow);
	someWindow.resizable = false;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=titlestoreBounds|class=node}{tr:id=name}{td}h6.titlestoreBounds{td}{tr}{tr:id=des}{td}{sub-section:titlestoreBounds_des|text=|trigger=button}{sub-section}{sub-section:titlestoreBounds_des|trigger=none|class=sIndent}Gets/Sets the title textTells whether or not the bounds of this window should be stored/persisted (default false).
If true, the window's bounds will be stored when the window is closed. Stored bounds will be used when the window is shown again instead of initialBounds.
For non resizable windows, only location is stored/persisted.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:titlestoreBounds_snc|text=|trigger=button}{sub-section}{sub-section:titlestoreBounds_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:titlestoreBounds_prs|text=|trigger=button}{sub-section}{sub-section:titlestoreBounds_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:titlestoreBounds_ret|text=|trigger=button}{sub-section}{sub-section:titlestoreBounds_ret|trigger=none|class=sIndent}[StringBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:titlestoreBounds_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:titlestoreBounds_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:titlestoreBounds_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:titlestoreBounds_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:titlestoreBounds_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:titlestoreBounds_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOWDIALOG, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.resizable = false;
win1.storeBounds = true;
win1.title = "Window 1";
controller.show(win1);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{tabletbody:id=functiontitle|class=servoy sDetailnode}{colgrouptr:id=name}{column:padding=0px|width=100%}{column}{colgrouptd}h6.title{td}{tr}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=destroy|class=node}{tr:id=name}{td}h6.destroy{td}{trid=des}{td}{sub-section:title_des|text=|trigger=button}{sub-section}{sub-section:title_des|trigger=none|class=sIndent}Gets/Sets the title text.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sigsnc}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}destroy{span}{span:id=iets|style=float: left;}\(){span}{td}{tr*Since*\\{sub-section:title_snc|text=|trigger=button}{sub-section}{sub-section:title_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=desprs}{td}*Parameters*\\{sub-section:destroytitle_desprs|text=|trigger=button}{sub-section}{sub-section:destroytitle_desprs|trigger=none|class=sIndent}Frees the resources allocated by this window. If window is visible, it will close it first.
The window will no longer be available with application.getWindow('windowName') and will no longer be usable.

The main application window cannot be destroyed.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:destroytitle_sncret|text=|trigger=button}{sub-section}{sub-section:destroytitle_sncret|trigger=none|class=sIndent} Replace with version info[String]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssee}{td}*ParametersAlso see*\\{sub-section:destroytitle_prssee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:destroytitle_prssee|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{trbuilder-show:idpermission=retedit}{tr:id=link}{td}*ReturnsExternal links*\\{sub-section:destroytitle_retlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:destroytitle_retlink|trigger=none|class=sIndent}void{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:destroytitle_seesam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:destroytitle_seesam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.title = "Window 1";
controller.show(win1);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{builder-showtd}{builder-show:permission=edittd}{tr}{tbody}{tbody:id=link}{td}*External links*\\undecorated|class=node}{tr:id=name}{td}h6.undecorated{td}{tr}{tr:id=des}{td}{sub-section:destroyundecorated_linkdes|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:destroyundecorated_linkdes|trigger=none|class=sIndent}Gets/Sets the undecorated property.
If set then this window will not have any decoration and can't be moved/resized or closed.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:destroyundecorated_samsnc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:destroyundecorated_samsnc|trigger=none}{code:language=javascript|class=sIndent} varReplace getWindowwith = application.getWindow("someWindowName");
getWindow.destroy();
getWindow = application.getWindow("someWindowName");
if (getWindow == null) {
		application.output("Window has been destroyed");
	} else { 
		application.output("Window could not be destroyed");
	}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{tdversion info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:undecorated_prs|text=|trigger=button}{sub-section}{sub-section:undecorated_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{tbodybuilder-show}{tbodytr:id=getHeight|class=noderet}{tr:id=name}{td}h6.getHeight{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getHeight{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}td}*Returns*\\{sub-section:getHeightundecorated_desret|text=|trigger=button}{sub-section}{sub-section:getHeightundecorated_desret|trigger=none|class=sIndent}Returns the height.[Boolean] -- if this window will be undecorated{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:getHeightundecorated_sncsee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getHeightundecorated_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:getHeightundecorated_prslink|text=|trigger=button}{sub-section}{sub-section:getHeight_prs|trigger=none|div:class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getHeight_ret|text=:undecorated_link|trigger=buttonnone}{sub-section}{sub-section:getHeight_ret|trigger=none|class=sIndent}[Number] -- the height.{sub-sectiondiv}{td}{tr}{builder-show:permission=edit}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:getHeightundecorated_seesam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getHeightundecorated_seesam|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getHeight_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getHeight_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getHeight_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getHeight_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Namecode:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getNamegetHeight() + "\n"
var parentwidth = "ParentWidth: " + (someWindow.getParentgetWidth() == null ? "none" : someWindow.getParent()) + + "\n"
var typeundecorated = "TypeNumberUndecorated: " + someWindow.getTypeisUndecorated() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getNamedestroy|class=node}{tr:id=name}{td}h6.getNamedestroy{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]void{span}{span:id=iets|style=float: left; font-weight: bold;}getNamedestroy{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getNamedestroy_des|text=|trigger=button}{sub-section}{sub-section:getNamedestroy_des|trigger=none|class=sIndent}ReturnsFrees the resources allocated by this window. If window name. It will be null in case of is visible, it will close it first.
The window will no longer be available with application.getWindow('windowName') and will no longer be usable.

The main application framewindow cannot be destroyed.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getNamedestroy_snc|text=|trigger=button}{sub-section}{sub-section:getNamedestroy_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getNamedestroy_prs|text=|trigger=button}{sub-section}{sub-section:getNamedestroy_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getNamedestroy_ret|text=|trigger=button}{sub-section}{sub-section:getNamedestroy_ret|trigger=none|class=sIndent}[String] -- the window name.void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getNamedestroy_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getNamedestroy_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getNamedestroy_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getNamedestroy_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getNamedestroy_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getNamedestroy_sam|trigger=none}{code:language=javascript}
var someWindowgetWindow = application.createWindowgetWindow("someWindowName", JSWindow.WINDOW, null);
someWindowgetWindow.setInitialBoundsdestroy(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{);
getWindow = application.getWindow("someWindowName");
if (getWindow == null) {
	application.output("Window has been destroyed");
} else { 
	application.output("Window could not be destroyed");
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getHeight|class=node}{tr:id=name}{td}h6.getHeight{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getHeight{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:classid=lastDetailRowdes}{td}{td}{tr}{tbody}{tbody:id=getParent|class=node}{tr:id=name}{td}h6.getParent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSWindow]{span}{span:id=iets|style=float: left; font-weight: bold;}getParent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getParent_sub-section:getHeight_des|text=|trigger=button}{sub-section}{sub-section:getParentgetHeight_des|trigger=none|class=sIndent}Returns the parent JSWindow, if availableheight.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getParentgetHeight_snc|text=|trigger=button}{sub-section}{sub-section:getParentgetHeight_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getParentgetHeight_prs|text=|trigger=button}{sub-section}{sub-section:getParentgetHeight_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getParentgetHeight_ret|text=|trigger=button}{sub-section}{sub-section:getParentgetHeight_ret|trigger=none|class=sIndent}[JSWindowNumber] -- the parent JSWindow, if available. If there is no parent JSWindow, it will return nullheight.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getParentgetHeight_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getParentgetHeight_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getParentgetHeight_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getParentgetHeight_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getParentgetHeight_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getParentgetHeight_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getTypegetName|class=node}{tr:id=name}{td}h6.getTypegetName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[NumberString]{span}{span:id=iets|style=float: left; font-weight: bold;}getTypegetName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getTypegetName_des|text=|trigger=button}{sub-section}{sub-section:getTypegetName_des|trigger=none|class=sIndent}Returns the window type name. It will be null in case of main application frame.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getTypegetName_snc|text=|trigger=button}{sub-section}{sub-section:getTypegetName_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getTypegetName_prs|text=|trigger=button}{sub-section}{sub-section:getTypegetName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getTypegetName_ret|text=|trigger=button}{sub-section}{sub-section:getTypegetName_ret|trigger=none|class=sIndent}[NumberString] -- the window type. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW.name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getTypegetName_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTypegetName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getTypegetName_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTypegetName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getTypegetName_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getTypegetName_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getWidthgetParent|class=node}{tr:id=name}{td}h6.getWidthgetParent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[NumberJSWindow]{span}{span:id=iets|style=float: left; font-weight: bold;}getWidthgetParent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getWidthgetParent_des|text=|trigger=button}{sub-section}{sub-section:getWidthgetParent_des|trigger=none|class=sIndent}Returns the width parent JSWindow, if available.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getWidthgetParent_snc|text=|trigger=button}{sub-section}{sub-section:getWidthgetParent_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getWidthgetParent_prs|text=|trigger=button}{sub-section}{sub-section:getWidthgetParent_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getWidthgetParent_ret|text=|trigger=button}{sub-section}{sub-section:getWidthgetParent_ret|trigger=none|class=sIndent}[NumberJSWindow] -- the width parent JSWindow, if available. If there is no parent JSWindow, it will return null.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getWidthgetParent_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getWidthgetParent_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getWidthgetParent_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getWidthgetParent_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getWidthgetParent_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getWidthgetParent_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getXgetType|class=node}{tr:id=name}{td}h6.getXgetType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getXgetType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getXgetType_des|text=|trigger=button}{sub-section}{sub-section:getXgetType_des|trigger=none|class=sIndent}Returns the xwindow coordinatetype.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getXgetType_snc|text=|trigger=button}{sub-section}{sub-section:getXgetType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getXgetType_prs|text=|trigger=button}{sub-section}{sub-section:getXgetType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getXgetType_ret|text=|trigger=button}{sub-section}{sub-section:getXgetType_ret|trigger=none|class=sIndent}[Number] -- the x coordinate window type. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getXgetType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getXgetType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getXgetType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getXgetType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getXgetType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getXgetType_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getYgetWidth|class=node}{tr:id=name}{td}h6.getYgetWidth{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getYgetWidth{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getYgetWidth_des|text=|trigger=button}{sub-section}{sub-section:getYgetWidth_des|trigger=none|class=sIndent}Returns the y coordinatewidth.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getYgetWidth_snc|text=|trigger=button}{sub-section}{sub-section:getYgetWidth_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getYgetWidth_prs|text=|trigger=button}{sub-section}{sub-section:getYgetWidth_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getYgetWidth_ret|text=|trigger=button}{sub-section}{sub-section:getYgetWidth_ret|trigger=none|class=sIndent}[Number] -- the y coordinatewidth.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getYgetWidth_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getYgetWidth_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getYgetWidth_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getYgetWidth_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getYgetWidth_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getYgetWidth_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var locationXundecorated = "Location-X-coordinateUndecorated: " + someWindow.getXisUndecorated() + "\n"
var locationYlocationX = "Location-YX-coordinate: " + someWindow.getYgetX() + "\n"
var infolocationY = name "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()+ "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getX|class=node}{tr:id=name}{td}h6.getX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getX_des|text=|trigger=button}{sub-section}{sub-section:getX_des|trigger=none|class=sIndent}Returns the x coordinate.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getX_snc|text=|trigger=button}{sub-section}{sub-section:getX_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getX_prs|text=|trigger=button}{sub-section}{sub-section:getX_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getX_ret|text=|trigger=button}{sub-section}{sub-section:getX_ret|trigger=none|class=sIndent}[Number] -- the x coordinate.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getX_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getX_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getX_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getX_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getX_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getX_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getY|class=node}{tr:id=name}{td}h6.getY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getY_des|text=|trigger=button}{sub-section}{sub-section:getY_des|trigger=none|class=sIndent}Returns the y coordinate.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getY_snc|text=|trigger=button}{sub-section}{sub-section:getY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getY_prs|text=|trigger=button}{sub-section}{sub-section:getY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getY_ret|text=|trigger=button}{sub-section}{sub-section:getY_ret|trigger=none|class=sIndent}[Number] -- the y coordinate.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getY_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);

var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."

var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=hide|class=node}{tr:id=name}{td}h6.hide{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}hide{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:hide_des|text=|trigger=button}{sub-section}{sub-section:hide_des|trigger=none|class=sIndent}Hides the window. It can be shown again using window.show(), controller.show() or controller.showRecords().
The main application window cannot be hidden.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:hide_snc|text=|trigger=button}{sub-section}{sub-section:hide_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:hide_prs|text=|trigger=button}{sub-section}{sub-section:hide_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:hide_ret|text=|trigger=button}{sub-section}{sub-section:hide_ret|trigger=none|class=sIndent}[Boolean] -- Boolean true if the window was successfully closed and false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:hide_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:hide_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:hide_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:hide_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:hide_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:hide_sam|trigger=none}{code:language=javascript}
//creates and shows a window for 3 seconds before closing it
var win = application.createWindow("someWindowName", JSWindow.WINDOW, null);
win.setInitialBounds(200, 200, 450, 350);
controller.show(win);
application.sleep(3000);
win.hide();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=hideisVisible|class=node}{tr:id=name}{td}h6.hideisVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}hideisVisible{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:hideisVisible_des|text=|trigger=button}{sub-section}{sub-section:hideisVisible_des|trigger=none|class=sIndent}HidesReturns true if the window. It can be shown again using window.show(), controller.show() or controller.showRecords().
The main application window cannot be hidden.is visible, false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:hideisVisible_snc|text=|trigger=button}{sub-section}{sub-section:hideisVisible_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:hideisVisible_prs|text=|trigger=button}{sub-section}{sub-section:hideisVisible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:hideisVisible_ret|text=|trigger=button}{sub-section}{sub-section:hideisVisible_ret|trigger=none|class=sIndent}[Boolean] -- Boolean true if the window was successfully closed and is visible, false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:hideisVisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:hideisVisible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:hideisVisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:hideisVisible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:hideisVisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:hideisVisible_sam|trigger=none}{code:language=javascript}
//creates and
shows a window for 3 seconds before closing it
var winsomeWindow = application.createWindowgetWindow("someWindowName", JSWindow.WINDOW, null);
win.setInitialBounds(200, 200, 450, 350);
if (someWindow.isVisible() == false) { 
	controller.show(winsomeWindow);
application.sleep(3000);
win.hide();	someWindow.resizable = false;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isVisibleresetBounds|class=node}{tr:id=name}{td}h6.isVisibleresetBounds{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]void{span}{span:id=iets|style=float: left; font-weight: bold;}isVisibleresetBounds{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:isVisibleresetBounds_des|text=|trigger=button}{sub-section}{sub-section:isVisibleresetBounds_des|trigger=none|class=sIndent}Returns true ifDeletes the window's currently stored bounds. It will only affect the next show of the window is visible, false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:isVisibleresetBounds_snc|text=|trigger=button}{sub-section}{sub-section:isVisibleresetBounds_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:isVisibleresetBounds_prs|text=|trigger=button}{sub-section}{sub-section:isVisibleresetBounds_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:isVisibleresetBounds_ret|text=|trigger=button}{sub-section}{sub-section:isVisibleresetBounds_ret|trigger=none|class=sIndent}[Boolean] -- true if the window is visible, false otherwise.void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:isVisibleresetBounds_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:isVisibleresetBounds_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:isVisibleresetBounds_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:isVisibleresetBounds_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:isVisibleresetBounds_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:isVisibleresetBounds_sam|trigger=none}{code:language=javascript}
var someWindowwin1 = application.getWindowcreateWindow("someWindowName"Window 1", JSWindow.DIALOG, null);
if (someWindow.isVisible() == false) { 
	controller.show(someWindow);
	someWindow.resizable = false;
}
win1.title = "Window 1";
win1.setInitialBounds(200, 200, 400, 600);
win1.storeBounds = true;
if (newSolutionVersion) win1.resetBounds();
win1.show(forms.myform);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setInitialBounds|class=node}{tr:id=name}{td}h6.setInitialBounds{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setInitialBounds{span}{span:id=iets|style=float: left;}\(x, y, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:setInitialBounds_des|text=|trigger=button}{sub-section}{sub-section:setInitialBounds_des|trigger=none|class=sIndent}Sets the initial window bounds.
The initial bounds are only used the first time this window is shown (what first show means depends on storeBounds property).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setInitialBounds_snc|text=|trigger=button}{sub-section}{sub-section:setInitialBounds_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setInitialBounds_prs|text=|trigger=button}{sub-section}{sub-section:setInitialBounds_prs|trigger=none|class=sIndent}\{[Number]} x -- the initial x coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
\{[Number]} y -- the initial y coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
\{[Number]} width -- the initial width of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
\{[Number]} height -- the initial height of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setInitialBounds_ret|text=|trigger=button}{sub-section}{sub-section:setInitialBounds_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setInitialBounds_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setInitialBounds_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setInitialBounds_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setInitialBounds_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setInitialBounds_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setInitialBounds_sam|trigger=none}{code:language=javascript}
var win = application.createWindow("myName", JSWindow.DIALOG);
win.setInitialBounds(20, 10, 300, 200);
forms.myForm.show(win);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setLocation|class=node}{tr:id=name}{td}h6.setLocation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setLocation{span}{span:id=iets|style=float: left;}\(x, y){span}{td}{tr}{tr:id=des}{td}{sub-section:setLocation_des|text=|trigger=button}{sub-section}{sub-section:setLocation_des|trigger=none|class=sIndent}Set the window location.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setLocation_snc|text=|trigger=button}{sub-section}{sub-section:setLocation_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setLocation_prs|text=|trigger=button}{sub-section}{sub-section:setLocation_prs|trigger=none|class=sIndent}\{[Number]} x -- x coordinate.
\{[Number]} y -- y coordinate.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setLocation_ret|text=|trigger=button}{sub-section}{sub-section:setLocation_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setLocation_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setLocation_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setLocation_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setLocation_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setLocation_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setLocation_sam|trigger=none}{code:language=javascript}
var window = application.createWindow('test',JSWindow.DIALOG);
window.show(forms.child1);
window.setLocation(0,0);
window.setSize(400,600);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setSize|class=node}{tr:id=name}{td}h6.setSize{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setSize{span}{span:id=iets|style=float: left;}\(width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:setSize_des|text=|trigger=button}{sub-section}{sub-section:setSize_des|trigger=none|class=sIndent}Set the window size.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setSize_snc|text=|trigger=button}{sub-section}{sub-section:setSize_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setSize_prs|text=|trigger=button}{sub-section}{sub-section:setSize_prs|trigger=none|class=sIndent}\{[Number]} width -- the width.
\{[Number]} height -- the height.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setSize_ret|text=|trigger=button}{sub-section}{sub-section:setSize_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setSize_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setSize_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setSize_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setSize_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setSize_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setSize_sam|trigger=none}{code:language=javascript}
var window = application.createWindow('test',JSWindow.DIALOG);
window.show(forms.child1);
window.setLocation(0,0);
window.setSize(400,600);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=show|class=node}{tr:id=name}{td}h6.show{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}show{span}{span:id=iets|style=float: left;}\(form){span}{td}{tr}{tr:id=des}{td}{sub-section:show_des|text=|trigger=button}{sub-section}{sub-section:show_des|trigger=none|class=sIndent}Shows the given form(form name, form object or JSForm) in this window.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:show_snc|text=|trigger=button}{sub-section}{sub-section:show_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:show_prs|text=|trigger=button}{sub-section}{sub-section:show_prs|trigger=none|class=sIndent}\{[Object]} form -- the form that will be shown inside this window. It can be a form name or a form object (actual form or JSForm).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:show_ret|text=|trigger=button}{sub-section}{sub-section:show_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:show_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:show_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:show_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:show_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:show_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:show_sam|trigger=none}{code:language=javascript}
win.show(forms.myForm);
// win.show("myForm");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showTextToolbar|class=node}{tr:id=name}{td}h6.showTextToolbar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}showTextToolbar{span}{span:id=iets|style=float: left;}\(showTextToolbar){span}{td}{tr}{tr:id=des}{td}{sub-section:showTextToolbar_des|text=|trigger=button}{sub-section}{sub-section:showTextToolbar_des|trigger=none|class=sIndent}Sets whether or not this window should have a text tool bar. Has no effect on web client or smart client main application frame.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showTextToolbar_snc|text=|trigger=button}{sub-section}{sub-section:showTextToolbar_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showTextToolbar_prs|text=|trigger=button}{sub-section}{sub-section:showTextToolbar_prs|trigger=none|class=sIndent}\{[Boolean]} showTextToolbar -- true if you want a text tool bar to be added to this window, false otherwise.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showTextToolbar_ret|text=|trigger=button}{sub-section}{sub-section:showTextToolbar_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showTextToolbar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showTextToolbar_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showTextToolbar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showTextToolbar_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showTextToolbar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showTextToolbar_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.setTitle("Window 1");
win1.showTextToolbar(false);
controller.show(win1);

var win2 = application.createWindow("Window 2", JSWindow.WINDOW, null);
win2.setInitialBounds(500, 500, 450, 350);
win2.setTitle("Window 2");
win2.showTextToolbar(false);
controller.show(win2);

var win3 = application.createWindow("Window 3", JSWindow.WINDOW, null);
win3.setInitialBounds(650, 700, 450, 350);
win3.setTitle("Window 3");
win3.showTextToolbar(true);
controller.show(win3);

application.sleep(2000);
win3.toBack();
application.sleep(2000);
win1.toFront();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toBack|class=node}{tr:id=name}{td}h6.toBack{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}toBack{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:toBack_des|text=|trigger=button}{sub-section}{sub-section:toBack_des|trigger=none|class=sIndent}Shows this window behind other windows, if possible.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toBack_snc|text=|trigger=button}{sub-section}{sub-section:toBack_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:toBack_prs|text=|trigger=button}{sub-section}{sub-section:toBack_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toBack_ret|text=|trigger=button}{sub-section}{sub-section:toBack_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toBack_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toBack_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toBack_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toBack_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toBack_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toBack_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.setTitle("Window 1");
win1.showTextToolbar(false);
controller.show(win1);

var win2 = application.createWindow("Window 2", JSWindow.WINDOW, null);
win2.setInitialBounds(500, 500, 450, 350);
win2.setTitle("Window 2");
win2.showTextToolbar(false);
controller.show(win2);

var win3 = application.createWindow("Window 3", JSWindow.WINDOW, null);
win3.setInitialBounds(650, 700, 450, 350);
win3.setTitle("Window 3");
win3.showTextToolbar(true);
controller.show(win3);

application.sleep(2000);
win3.toBack();
application.sleep(2000);
win1.toFront();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toFront|class=node}{tr:id=name}{td}h6.toFront{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}toFront{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:toFront_des|text=|trigger=button}{sub-section}{sub-section:toFront_des|trigger=none|class=sIndent}Bring this window in front of other windows, if possible.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toFront_snc|text=|trigger=button}{sub-section}{sub-section:toFront_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:toFront_prs|text=|trigger=button}{sub-section}{sub-section:toFront_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toFront_ret|text=|trigger=button}{sub-section}{sub-section:toFront_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toFront_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toFront_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toFront_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toFront_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toFront_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toFront_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.setTitle("Window 1");
win1.showTextToolbar(false);
controller.show(win1);

var win2 = application.createWindow("Window 2", JSWindow.WINDOW, null);
win2.setInitialBounds(500, 500, 450, 350);
win2.setTitle("Window 2");
win2.showTextToolbar(false);
controller.show(win2);

var win3 = application.createWindow("Window 3", JSWindow.WINDOW, null);
win3.setInitialBounds(650, 700, 450, 350);
win3.setTitle("Window 3");
win3.showTextToolbar(true);
controller.show(win3);

application.sleep(2000);
win3.toBack();
application.sleep(2000);
win1.toFront();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}