A frame is a window which contains subwindows of various kinds. It has a title bar, an optional menu bar, an optional status line, and an optional tool bar. A frame may contain as subwindows wx:canvas% object, wx:panel% objects, and and wx:text-window% objects.
Under Windows, both Multiple Document Interface (MDI) and Single Document Interface (SDI) frames are supported. The handling of a toolbar is special in the MDI case: if you wish to have a tool bar on an MDI parent frame, create the tool bar as normal (as a child of the MDI frame), set the appropriate height for it, and call set-tool-bar; the tool bar will then be managed automatically.
The parent parameter can be null or an existing frame; if an existing frame is used under Windows, the child frame is always on top of the parent, and will be iconized when the parent is iconized.
If title is not null, it is used as the dialog box title; otherwise, a default title is used.
The style argument may be a bitwise combination of the following:
The flag value wx:const-default-frame is defined as (bitwise-or wx:const-minimize-box wx:const-maximize-box wx:const-resize-border wx:const-thick-frame wx:const-system-menu wx:const-caption).
The name argument is used to associate a name with the frame, allowing the application user to set X Windows resource values for each individual frame.