]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/minifram.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxMiniFrame
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 A miniframe is a frame with a small title bar. It is suitable for floating
13 toolbars that must not
14 take up too much screen area.
16 An example of mini frame can be seen in the @ref overview_sampledialogs
18 using the "Mini frame" command of the "Generic dialogs" submenu.
22 Display the frame iconized (minimized) (Windows only).
24 Puts a caption on the frame.
26 Identical to wxICONIZE.
27 @style{wxMINIMIZE_BOX}
28 Displays a minimize box on the frame (Windows and Motif only).
30 Displays the frame maximized (Windows only).
31 @style{wxMAXIMIZE_BOX}
32 Displays a maximize box on the frame (Windows and Motif only).
34 Displays a close box on the frame.
36 Stay on top of other windows (Windows only).
38 Displays a system menu (Windows and Motif only).
39 @style{wxTINY_CAPTION_HORIZ}
40 This style is obsolete and not used any longer.
41 @style{wxTINY_CAPTION_VERT}
42 This style is obsolete and not used any longer.
43 @style{wxRESIZE_BORDER}
44 Displays a resizeable border around the window.
50 @see wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog
52 class wxMiniFrame
: public wxFrame
57 Constructor, creating the window.
60 The window parent. This may be @NULL. If it is non-@NULL, the frame will
61 always be displayed on top of the parent window on Windows.
63 The window identifier. It may take a value of -1 to indicate a default
66 The caption to be displayed on the frame's title bar.
68 The window position. The value wxDefaultPosition indicates a default position,
70 either the windowing system or wxWidgets, depending on platform.
72 The window size. The value wxDefaultSize indicates a default size, chosen by
73 either the windowing system or wxWidgets, depending on platform.
75 The window style. See wxMiniFrame.
77 The name of the window. This parameter is used to associate a name with the
79 allowing the application user to set Motif resource values for
82 @remarks The frame behaves like a normal frame on non-Windows platforms.
87 wxMiniFrame(wxWindow
* parent
, wxWindowID id
,
88 const wxString
& title
,
89 const wxPoint
& pos
= wxDefaultPosition
,
90 const wxSize
& size
= wxDefaultSize
,
91 long style
= wxCAPTION
| wxRESIZE_BORDER
,
92 const wxString
& name
= "frame");
96 Destructor. Destroys all child windows and menu bar if present.
98 virtual ~wxMiniFrame();
101 Used in two-step frame construction. See wxMiniFrame()
104 bool Create(wxWindow
* parent
, wxWindowID id
,
105 const wxString
& title
,
106 const wxPoint
& pos
= wxDefaultPosition
,
107 const wxSize
& size
= wxDefaultSize
,
108 long style
= wxCAPTION
| wxRESIZE_BORDER
,
109 const wxString
& name
= "frame");