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$
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxMiniFrame
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-10-11 09:10:48 -04: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-10-11 09:10:48 -04:00
|
|
|
An example of mini frame can be seen in the @ref page_samples_dialogs
|
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-10-11 09:10:48 -04:00
|
|
|
Display the frame iconized (minimized) (Windows only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxCAPTION}
|
2008-10-11 09:10:48 -04:00
|
|
|
Puts a caption on the frame.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMINIMIZE}
|
2008-10-11 09:10:48 -04:00
|
|
|
Identical to wxICONIZE.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMINIMIZE_BOX}
|
2008-10-11 09:10:48 -04:00
|
|
|
Displays a minimize box on the frame (Windows and Motif only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMAXIMIZE}
|
2008-10-11 09:10:48 -04:00
|
|
|
Displays the frame maximized (Windows only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxMAXIMIZE_BOX}
|
2008-10-11 09:10:48 -04:00
|
|
|
Displays a maximize box on the frame (Windows and Motif only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxCLOSE_BOX}
|
2008-10-11 09:10:48 -04:00
|
|
|
Displays a close box on the frame.
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxSTAY_ON_TOP}
|
2008-10-11 09:10:48 -04:00
|
|
|
Stay on top of other windows (Windows only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxSYSTEM_MENU}
|
2008-10-11 09:10:48 -04:00
|
|
|
Displays a system menu (Windows and Motif only).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxRESIZE_BORDER}
|
2011-04-03 16:31:32 -04:00
|
|
|
Displays a resizable border around the window.
|
2008-03-08 08:52:38 -05:00
|
|
|
@endStyleTable
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-10-11 09:10:48 -04:00
|
|
|
@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.
|
|
|
|
|
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:
|
2008-10-11 09:10:48 -04:00
|
|
|
/**
|
|
|
|
Default ctor.
|
|
|
|
*/
|
|
|
|
wxMiniFrame();
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
|
|
|
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-10-11 09:10:48 -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,
|
2008-10-11 09:10:48 -04:00
|
|
|
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-10-11 09:10:48 -04:00
|
|
|
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
|
2008-03-09 08:33:59 -04:00
|
|
|
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
|
|
|
*/
|
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,
|
2008-11-08 10:17:16 -05:00
|
|
|
const wxString& name = wxFrameNameStr);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor. Destroys all child windows and menu bar if present.
|
|
|
|
*/
|
2008-09-27 07:21:10 -04:00
|
|
|
virtual ~wxMiniFrame();
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2008-10-11 09:10:48 -04:00
|
|
|
Used in two-step frame construction.
|
|
|
|
See wxMiniFrame() for further details.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-10-28 11:36:26 -04:00
|
|
|
bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
|
2008-03-08 08:52:38 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxCAPTION | wxRESIZE_BORDER,
|
2008-10-28 11:36:26 -04:00
|
|
|
const wxString& name = wxFrameNameStr);
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|