2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: minifram.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxMiniFrame
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxMiniFrame
|
|
|
|
@wxheader{minifram.h}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
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.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
An example of mini frame can be seen in the @ref overview_sampledialogs
|
2008-03-08 09:43:31 -05:00
|
|
|
"dialogs sample"
|
2008-04-01 09:59:28 -04:00
|
|
|
using the "Mini frame" command of the "Generic dialogs" submenu.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@beginStyleTable
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxICONIZE}
|
2008-03-08 08:52:38 -05:00
|
|
|
Display the frame iconized (minimized) (Windows only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxCAPTION}
|
2008-03-08 08:52:38 -05:00
|
|
|
Puts a caption on the frame.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMINIMIZE}
|
2008-03-08 08:52:38 -05:00
|
|
|
Identical to wxICONIZE.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMINIMIZE_BOX}
|
2008-03-08 08:52:38 -05:00
|
|
|
Displays a minimize box on the frame (Windows and Motif only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMAXIMIZE}
|
2008-03-08 08:52:38 -05:00
|
|
|
Displays the frame maximized (Windows only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMAXIMIZE_BOX}
|
2008-03-08 08:52:38 -05:00
|
|
|
Displays a maximize box on the frame (Windows and Motif only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxCLOSE_BOX}
|
2008-03-08 08:52:38 -05:00
|
|
|
Displays a close box on the frame.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxSTAY_ON_TOP}
|
2008-03-08 08:52:38 -05:00
|
|
|
Stay on top of other windows (Windows only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxSYSTEM_MENU}
|
2008-03-08 08:52:38 -05:00
|
|
|
Displays a system menu (Windows and Motif only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxTINY_CAPTION_HORIZ}
|
2008-03-08 08:52:38 -05:00
|
|
|
This style is obsolete and not used any longer.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxTINY_CAPTION_VERT}
|
2008-03-08 08:52:38 -05:00
|
|
|
This style is obsolete and not used any longer.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxRESIZE_BORDER}
|
2008-03-08 08:52:38 -05:00
|
|
|
Displays a resizeable border around the window.
|
|
|
|
@endStyleTable
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxcore}
|
|
|
|
@category{managedwnd}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-10 11:24:38 -04:00
|
|
|
@see wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
class wxMiniFrame : public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Constructor, creating the window.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-08 09:43:31 -05:00
|
|
|
@param parent
|
2008-03-09 08:33:59 -04:00
|
|
|
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.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param id
|
2008-03-09 08:33:59 -04:00
|
|
|
The window identifier. It may take a value of -1 to indicate a default
|
|
|
|
value.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param title
|
2008-03-09 08:33:59 -04:00
|
|
|
The caption to be displayed on the frame's title bar.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param pos
|
2008-03-09 08:33:59 -04:00
|
|
|
The window position. The value wxDefaultPosition indicates a default position,
|
|
|
|
chosen by
|
|
|
|
either the windowing system or wxWidgets, depending on platform.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param size
|
2008-03-09 08:33:59 -04:00
|
|
|
The window size. The value wxDefaultSize indicates a default size, chosen by
|
|
|
|
either the windowing system or wxWidgets, depending on platform.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param style
|
2008-03-09 08:33:59 -04:00
|
|
|
The window style. See wxMiniFrame.
|
2008-03-08 09:43:31 -05:00
|
|
|
@param name
|
2008-03-09 08:33:59 -04:00
|
|
|
The name of the window. This parameter is used to associate a name with the
|
2008-03-08 08:52:38 -05:00
|
|
|
item,
|
2008-03-09 08:33:59 -04:00
|
|
|
allowing the application user to set Motif resource values for
|
|
|
|
individual windows.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@remarks The frame behaves like a normal frame on non-Windows platforms.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-09 08:33:59 -04:00
|
|
|
@see Create()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxMiniFrame();
|
2008-03-08 09:43:31 -05:00
|
|
|
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");
|
2008-03-08 08:52:38 -05:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor. Destroys all child windows and menu bar if present.
|
|
|
|
*/
|
|
|
|
~wxMiniFrame();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Used in two-step frame construction. See wxMiniFrame()
|
|
|
|
for further details.
|
|
|
|
*/
|
|
|
|
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");
|
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|