**************** wx.MDIChildFrame **************** Inheritance diagram for `wx.MDIChildFrame`: | .. inheritance-diagram:: wx.MDIChildFrame | Description =========== An MDI child frame is a frame that can only exist on a `wx.MDIClientWindow `_, which is itself a child of `wx.MDIParentFrame `_. .. seealso:: `wx.MDIClientWindow `_, `wx.MDIParentFrame `_, `wx.Frame `_ Derived From ^^^^^^^^^^^^^ * `wx.Frame `_ * `wx.Window `_ * `wx.EvtHandler `_ * `wx.Object `_ Window Styles ^^^^^^^^^^^^^ ================================================== ================================================== Window Style Description ================================================== ================================================== ``wx.CAPTION`` Puts a caption on the frame. ``wx.DEFAULT_FRAME_STYLE`` Defined as ``wx.MINIMIZE_BOX`` | ``wx.MAXIMIZE_BOX`` | ``wx.THICK_FRAME`` | ``wx.SYSTEM_MENU`` | ``wx.CAPTION``. ``wx.ICONIZE`` Display the frame iconized (minimized) (Windows only). ``wx.MAXIMIZE`` Displays the frame maximized (Windows only). ``wx.MAXIMIZE_BOX`` Displays a maximize box on the frame (Windows and Motif only). ``wx.MINIMIZE`` Identical to ``wx.ICONIZE``. ``wx.MINIMIZE_BOX`` Displays a minimize box on the frame (Windows and Motif only). ``wx.RESIZE_BORDER`` Displays a resizeable border around the window (Motif only; for Windows, it is implicit in ``wx.THICK_FRAME``). ``wx.STAY_ON_TOP`` Stay on top of other windows (Windows only). ``wx.SYSTEM_MENU`` Displays a system menu (Windows and Motif only). ``wx.THICK_FRAME`` Displays a thick frame around the window (Windows and Motif only). ================================================== ================================================== Remarks ^^^^^^^ Although internally an MDI child frame is a child of the MDI client window, in wxWidgets you create it as a child of `wx.MDIParentFrame `_. You can usually forget that the client window exists. MDI child frames are clipped to the area of the MDI client window, and may be iconized on the client window. You can associate a menubar with a child frame as usual, although an MDI child doesn't display its menubar under its own title bar. The MDI parent frame's menubar will be changed to reflect the currently active child frame. If there are currently no children, the parent frame's own menubar will be displayed. Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `Activate <#Activate>`_ * `Maximize <#Maximize>`_ * `Restore <#Restore>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, name=wx.FrameNameStr) Constructor. **Parameters:** * `parent` (`wx.MDIParentFrame `_) * `id` (int) * `title` (string) * `pos` (`wx.Point `_) * `size` (`wx.Size `_) * `style` (long) * `name` (string) | **Returns:** `wx.MDIChildFrame `_ -------- .. method:: Activate() Activates this MDI child frame. .. seealso:: `Maximize <#Maximize>`_, `Restore <#Restore>`_ -------- .. method:: Maximize(maximize) Maximizes this MDI child frame. **Parameters:** * `maximize` (bool) .. seealso:: `Activate <#Activate>`_, `Restore <#Restore>`_ -------- .. method:: Restore() Restores this MDI child frame (un-maximizes). .. seealso:: `Activate <#Activate>`_, `Maximize <#Maximize>`_