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



wxMiniFrame::wxMiniFrame



wxMiniFrame(void)

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
The window parent. This may be NULL. If it is non-NULL, the frame will always be displayed on top of the parent window on Windows.

id
The window identifier. It may take a value of -1 to indicate a default value.

title
The caption to be displayed on the frame's title bar.

pos
The window position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.

size
The window size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.

style
The window style. See wxMiniFrame.

name
The name of the window. This parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual windows.

Remarks

The frame behaves like a normal frame on non-Windows platforms.

See also

wxMiniFrame::Create



wxMiniFrame::~wxMiniFrame



void ~wxMiniFrame(void)

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 = wxDEFAULT_FRAME_STYLE, const wxString& name = ``frame")

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

ymasuda 平成17年11月19日