Contents Up Previous Next

wxMiniFrame

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.
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).
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.

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::wxMiniFrame

wxMiniFrame()

Default constructor.

wxMiniFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION | wxRESIZE_BORDER, 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

wxMiniFrame::Create


wxMiniFrame::~wxMiniFrame

void ~wxMiniFrame()

Destructor. Destroys all child windows and menu bar if present.


wxMiniFrame::Create

bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION | wxRESIZE_BORDER, const wxString& name = "frame")

Used in two-step frame construction. See wxMiniFrame::wxMiniFrame for further details.