Name
Application.AddWindow -- add detached window object to application object
Synopsis
moai.DoMethod(id, "AddWindow", window)
Function
This method can be used to add a detached window object to the application object. Once the window object has been attached to the application object, you can open the window by setting its Window.Open attribute.

Detached window objects can be created either by calling the moai.CreateObject() function or by explicitly detaching them from their parent by using the Application.RemoveWindow method.

Please do note that you must not call Application.AddWindow for dialogs created using moai.CreateDialog() since moai.CreateDialog() already calls Application.AddWindow internally.

Inputs
id
id of the application object
window
id of the window object to add
Example
See moai.CreateObject


Show TOC