]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/minifram.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxMiniFrame
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
11 A miniframe is a frame with a small title bar.
12 It is suitable for floating toolbars that must not take up too much screen area.
14 An example of mini frame can be seen in the @ref page_samples_dialogs
15 using the "Mini frame" command of the "Generic dialogs" submenu.
19 Display the frame iconized (minimized) (Windows only).
21 Puts a caption on the frame.
23 Identical to wxICONIZE.
24 @style{wxMINIMIZE_BOX}
25 Displays a minimize box on the frame (Windows and Motif only).
27 Displays the frame maximized (Windows only).
28 @style{wxMAXIMIZE_BOX}
29 Displays a maximize box on the frame (Windows and Motif only).
31 Displays a close box on the frame.
33 Stay on top of other windows (Windows only).
35 Displays a system menu (Windows and Motif only).
36 @style{wxRESIZE_BORDER}
37 Displays a resizable border around the window.
41 This class has miniframe functionality under Windows and GTK, i.e. the presence
42 of mini frame will not be noted in the task bar and focus behaviour is different.
43 On other platforms, it behaves like a normal frame.
48 @see wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog
50 class wxMiniFrame
: public wxFrame
59 Constructor, creating the window.
62 The window parent. This may be @NULL. If it is non-@NULL, the frame will
63 always be displayed on top of the parent window on Windows.
65 The window identifier. It may take a value of -1 to indicate a default value.
67 The caption to be displayed on the frame's title bar.
69 The window position. The value wxDefaultPosition indicates a default position,
70 chosen by 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
78 the item, allowing the application user to set Motif resource values for
81 @remarks The frame behaves like a normal frame on non-Windows platforms.
85 wxMiniFrame(wxWindow
* parent
, wxWindowID id
,
86 const wxString
& title
,
87 const wxPoint
& pos
= wxDefaultPosition
,
88 const wxSize
& size
= wxDefaultSize
,
89 long style
= wxCAPTION
| wxRESIZE_BORDER
,
90 const wxString
& name
= wxFrameNameStr
);
93 Destructor. Destroys all child windows and menu bar if present.
95 virtual ~wxMiniFrame();
98 Used in two-step frame construction.
99 See wxMiniFrame() for further details.
101 bool Create(wxWindow
* parent
, wxWindowID id
, const wxString
& title
,
102 const wxPoint
& pos
= wxDefaultPosition
,
103 const wxSize
& size
= wxDefaultSize
,
104 long style
= wxCAPTION
| wxRESIZE_BORDER
,
105 const wxString
& name
= wxFrameNameStr
);