pseudo.WindowManager class
View Sample :: Return to index  
pseudo.WindowManager.WindowManager(pThis:MovieClip)
WindowManager constructor. You never use the constructor to create this component.

Parameters None
Returns Nothing
Example
    None


pseudo.WindowManager.create(pOwner:MovieClip, strName:String, nDepth:Number):pseudo.Edit
Use this static function to create new WindowManager on the specified movie clip. Never use constructor directly to do it.

Parameters pOwner The movie clip on which the new WindowsManager will be drawn.
strName The new WindowsManager instance name.
nDepth The new WindowsManager instance depth.
Returns The reference to new WindowManager instance
Example
    None


pseudo.WindowManager.showMaximized(bMaximized:Boolean):Void
Use this function to specify the initial state of the window (normal / maximized).

Parameters bMaximized Boolean value. If set to true then all new created windows are displayed maximized
Returns Nothing
Example
    None


pseudo.WindowManager.setStart(horz:String, vert:String):Void
Sets the position of the first window that will be created in the windows manager.

Parameters horz String value. Can be "left" / "center"
vert String value. Can be "top" / "middle"
Returns Nothing
Example
    None


pseudo.WindowManager.addWindow(strTitle:String, pClass:Function, strName:String, bMyPos:Boolean):pseudo.BaseWindow
Use this function to create windows in the pseudo.WindowManager. You never create windows using pseudo.BaseWindow.create function.

Parameters strTitle String value; window title
pClass Function value; class that will be used to create window; if null then pseudo.BaseWindow will be used
strName String value; window identifier that will be used to manipulate with this window
bMyPos Boolean value; if set to true then windows manager will not be positioning this window automatically and you will have to specify the position of the window yourself
Returns The reference to the newly created window
Example
    None


pseudo.WindowManager.getWindow(strName:String):pseudo.BaseWindow
Gets the reference to the window using string identifier. Returns null if the window is not found.

Parameters strName String value that is used to identify the window and return the reference to it
strName The new !!!!! instance name.
nDepth The new !!!!! instance depth.
Returns The reference to the window. null if the window is not found
Example
    None


pseudo.WindowManager.closeWindow(wnd:pseudo.BaseWindow):Number
Closes given window and returns the array index which was occupied by this window in the WindowManager stack. or -1 if window close operation fails.

Parameters wnd pseudo.BaseWindow object; window to close
Returns Returns the array index which was occupied by this window in the WindowManager stack, or -1 if window close operation fails
Example
    None


pseudo.WindowManager.closeAllWindows():Void
Closes all windows in this manager.

Parameters None
Returns Nothing
Example
    None


pseudo.WindowManager.maximizeWindow(wnd:pseudo.BaseWindow):Void
Maximizes given window.

Parameters wnd pseudo.BaseWindow object; the window to maximize
Returns Nothing
Example
    None


pseudo.WindowManager.minimizeWindow(wnd:pseudo.BaseWindow):Void
Minimizes given window.

Parameters wnd pseudo.BaseWindow object; the window to minimize
Returns Nothing
Example
    None


pseudo.WindowManager.hideWindow(wnd:pseudo.BaseWindow):Void
Hides given window.

Parameters wnd pseudo.BaseWindow object; the window to hide.
Returns Nothing
Example
    None


pseudo.WindowManager.showWindow(wnd:pseudo.BaseWindow):Void
Shows given window.

Parameters wnd pseudo.BaseWindow object; the window to show
Returns Nothing
Example
    None


pseudo.WindowManager.sendToTop(wnd:pseudo.BaseWindow):Void
Sends give window to the top of WindowManager stack of the windows. Also it shows the window if it was invisible and sets focus on it.

Parameters wnd pseudo.BaseWindow object; the window to manipulate with
Returns Nothing
Example
    None


pseudo.WindowManager.moveWindow(x:Number, y:Number, wnd:pseudo.BaseWindow):Void
Sends give window to the top of WindowManager stack of the windows. Also it shows the window if it was invisible and sets focus on it.

Parameters x pseudo.BaseWindow object; x-pos of the window
y pseudo.BaseWindow object; y-pos of the window
wnd pseudo.BaseWindow object; The window to manipulate with
Returns Nothing
Example
    None
Flash UI Components (c)TUFaT.com, All Rights Reserved.