wx.MDIChildFrame

Inheritance diagram for 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.

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.

Class API

Methods

__init__(parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, name=wx.FrameNameStr)

Constructor.

Parameters:


Returns:

wx.MDIChildFrame


Activate()
Activates this MDI child frame.

See also

Maximize, Restore


Maximize(maximize)

Maximizes this MDI child frame.

Parameters:

  • maximize (bool)

See also

Activate, Restore


Restore()
Restores this MDI child frame (un-maximizes).

See also

Activate, Maximize