A frame is a window whose size and position can (usually) be changed by the user.
It usually has thick borders and a title bar, and can optionally contain a menu bar, toolbar and status bar. A frame can contain any window that is not a frame or dialog.
A frame that has a status bar and toolbar, created via the
Remark: An application should normally define an
Default event processing
Styles
This class supports the following styles:
See also the overview_windowstyles.
Extra Styles
This class supports the following extra styles:
See:
This class is derived (and can use functions) from:
wxWidgets docs:
Event types emitted from this class:
Default constructor.
Constructor, creating the window.
Remark: For Motif, MWM (the Motif Window Manager) should be running for any window styles to work (otherwise all styles take effect).
See:
Destructor.
Destroys all child windows and menu bar if present.
See overview_windowdeletion for more info.
Used in two-step frame construction.
See
Creates a status bar at the bottom of the frame.
Return: A pointer to the status bar if it was created successfully, NULL otherwise.
Remark: The width of the status bar is the whole width of the frame (adjusted automatically when resizing), and the height and text size are chosen by the host windowing system.
See:
Creates a toolbar at the top or left of the frame.
Return: A pointer to the toolbar if it was created successfully, NULL otherwise.
Remark: By default, the toolbar is an instance of
See:
Returns the origin of the frame client area (in client coordinates).
It may be different from (0, 0) if the frame has a toolbar.
Returns a pointer to the menubar currently associated with the frame (if any).
See:
Returns a pointer to the status bar currently associated with the frame (if any).
See:
Returns the status bar pane used to display menu and toolbar help.
See:
Returns a pointer to the toolbar currently associated with the frame (if any).
See:
Simulate a menu command.
This function sends a dummy
It is sometimes useful to call this function after adding or deleting a children after the frame creation or if a child size changes. Note that if the frame is using either sizers or constraints for the children layout, it is enough to call
If
Tells the frame to show the given menu bar.
Remark: If the frame is destroyed, the menu bar and its menus will be destroyed also, so do not delete the menu bar explicitly (except by resetting the frame's menu bar to another frame or NULL). Under Windows, a size event is generated, so be sure to initialize data members properly before calling
See:
Associates a status bar with the frame.
If
See:
Set the status bar pane used to display menu and toolbar help.
Using -1 disables help display.
Sets the status bar text and updates the status bar display.
This is a simple wrapper for
Remark: Use an empty string to clear the status bar.
See:
Sets the widths of the fields in the status bar.
Remark: The widths of the variable fields are calculated from the total width of all fields, minus the sum of widths of the non-variable fields, divided by the number of variable fields.
Associates a toolbar with the frame.