Name
Application.RemoveWindow -- detach window object from application object
Synopsis
moai.DoMethod(id, "RemoveWindow", window)
Function
This method removes the specified window object from the application object and puts the window object in detached state. Window objects in detached state can either be reattached by running the Application.AddWindow method or can be freed by calling moai.FreeObject().

Please do note that you must not call Application.RemoveWindow for dialogs freed using moai.FreeDialog() since moai.FreeDialog() already calls Application.RemoveWindow internally.

Inputs
id
id of the application object
window
id of the window object to remove

Show TOC