A draggable window. Can be used as a container for other components.
Constructor
new (?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float, ?title:String)
Constructor
Parameters:
parent | The parent DisplayObjectContainer on which to add this Panel. |
---|---|
xpos | The x position to place this component. |
ypos | The y position to place this component. |
title | The string to display in the title bar. |
Variables
read onlycontent:DisplayObjectContainer
Container for content added to this panel. This is just a reference to the content of the internal Panel, which is masked, so best to add children to content, rather than directly to the window.
read onlygrips:Shape
Returns a reference to the shape showing the grips on the title bar. Can be used to do custom drawing or turn them invisible.
hasCloseButton:Bool
Sets / gets whether or not the window will display a close button. Close button merely dispatches a CLOSE event when clicked. It is up to the developer to handle this event.
hasMinimizeButton:Bool
Gets / sets whether or not the window will show a minimize button that will toggle the window open and closed. A closed window will only show the title bar.
minimized:Bool
Gets / sets whether the window is closed. A closed window will only show its title bar.
Methods
get_height ():Float
Gets the height of the component. A minimized window's height will only be that of its title bar.