A miniframe is a frame with a small title bar. It is suitable for floating toolbars that must not take up too much screen area.
Derived from
wxFrame
wxWindow
wxEvtHandler
wxObject
Include files
<wx/minifram.h>
Window styles
wxICONIZE | Display the frame iconized (minimized) (Windows only). |
wxCAPTION | Puts a caption on the frame. |
wxDEFAULT_FRAME_STYLE | Defined as wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxTHICK_FRAME | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX. |
wxMINIMIZE | Identical to wxICONIZE. |
wxMINIMIZE_BOX | Displays a minimize box on the frame (Windows and Motif only). |
wxMAXIMIZE | Displays the frame maximized (Windows only). |
wxMAXIMIZE_BOX | Displays a maximize box on the frame (Windows and Motif only). |
wxCLOSE_BOX | Displays a close box on the frame. |
wxSTAY_ON_TOP | Stay on top of other windows (Windows only). |
wxSYSTEM_MENU | Displays a system menu (Windows and Motif only). |
wxTHICK_FRAME | Displays a thick frame around the window (Windows and Motif only). |
wxTINY_CAPTION_HORIZ | This style is obsolete and not used any longer. |
wxTINY_CAPTION_VERT | This style is obsolete and not used any longer. |
wxRESIZE_BORDER | Displays a resizeable border around the window (Motif only; for Windows, it is implicit in wxTHICK_FRAME). |
See also window styles overview. Note that all the window styles above are ignored under GTK and the mini frame cannot be resized by the user.
Remarks
This class has miniframe functionality under Windows and GTK, i.e. the presence of mini frame will not be noted in the task bar and focus behaviour is different. On other platforms, it behaves like a normal frame.
See also
wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog
Members
wxMiniFrame::wxMiniFrame
wxMiniFrame::~wxMiniFrame
wxMiniFrame::Create
wxMiniFrame()
Default constructor.
wxMiniFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame")
Constructor, creating the window.
Parameters
parent
id
title
pos
size
style
name
Remarks
The frame behaves like a normal frame on non-Windows platforms.
See also
void ~wxMiniFrame()
Destructor. Destroys all child windows and menu bar if present.
bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame")
Used in two-step frame construction. See wxMiniFrame::wxMiniFrame for further details.