Version: 2.9.4
Public Member Functions
wxMiniFrame Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/minifram.h>

Inheritance diagram for wxMiniFrame:

Detailed Description

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.

An example of mini frame can be seen in the Dialogs Sample using the "Mini frame" command of the "Generic dialogs" submenu.

Styles

This class supports the following styles:

注意:
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.

Library:  wxCore
Category:  Managed Windows
参照:
wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog

Public Member Functions

 wxMiniFrame ()
 Default ctor.
 wxMiniFrame (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER, const wxString &name=wxFrameNameStr)
 Constructor, creating the window.
virtual ~wxMiniFrame ()
 Destructor.
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=wxFrameNameStr)
 Used in two-step frame construction.

List of all members.


Constructor & Destructor Documentation

wxMiniFrame::wxMiniFrame ( )

Default ctor.

wxMiniFrame::wxMiniFrame ( wxWindow parent,
wxWindowID  id,
const wxString title,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER,
const wxString name = wxFrameNameStr 
)

Constructor, creating the window.

Parameters:
parentThe 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.
idThe window identifier. It may take a value of -1 to indicate a default value.
titleThe caption to be displayed on the frame's title bar.
posThe window position. The value wxDefaultPosition indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.
sizeThe window size. The value wxDefaultSize indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
styleThe window style. See wxMiniFrame.
nameThe 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.
注意:
The frame behaves like a normal frame on non-Windows platforms.
参照:
Create()
virtual wxMiniFrame::~wxMiniFrame ( ) [virtual]

Destructor.

Destroys all child windows and menu bar if present.


Member Function Documentation

bool wxMiniFrame::Create ( wxWindow parent,
wxWindowID  id,
const wxString title,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER,
const wxString name = wxFrameNameStr 
)

Used in two-step frame construction.

See wxMiniFrame() for further details.

Reimplemented from wxFrame.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines