]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: minifram.h | |
e54c96f1 | 3 | // Purpose: interface of wxMiniFrame |
23324ae1 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | @class wxMiniFrame | |
11 | @wxheader{minifram.h} | |
7c913512 | 12 | |
23324ae1 FM |
13 | A miniframe is a frame with a small title bar. It is suitable for floating |
14 | toolbars that must not | |
15 | take up too much screen area. | |
7c913512 | 16 | |
23324ae1 | 17 | An example of mini frame can be seen in the @ref overview_sampledialogs |
7c913512 | 18 | "dialogs sample" |
cdbcf4c2 | 19 | using the "Mini frame" command of the "Generic dialogs" submenu. |
7c913512 | 20 | |
23324ae1 | 21 | @beginStyleTable |
8c6791e4 | 22 | @style{wxICONIZE} |
23324ae1 | 23 | Display the frame iconized (minimized) (Windows only). |
8c6791e4 | 24 | @style{wxCAPTION} |
23324ae1 | 25 | Puts a caption on the frame. |
8c6791e4 | 26 | @style{wxMINIMIZE} |
23324ae1 | 27 | Identical to wxICONIZE. |
8c6791e4 | 28 | @style{wxMINIMIZE_BOX} |
23324ae1 | 29 | Displays a minimize box on the frame (Windows and Motif only). |
8c6791e4 | 30 | @style{wxMAXIMIZE} |
23324ae1 | 31 | Displays the frame maximized (Windows only). |
8c6791e4 | 32 | @style{wxMAXIMIZE_BOX} |
23324ae1 | 33 | Displays a maximize box on the frame (Windows and Motif only). |
8c6791e4 | 34 | @style{wxCLOSE_BOX} |
23324ae1 | 35 | Displays a close box on the frame. |
8c6791e4 | 36 | @style{wxSTAY_ON_TOP} |
23324ae1 | 37 | Stay on top of other windows (Windows only). |
8c6791e4 | 38 | @style{wxSYSTEM_MENU} |
23324ae1 | 39 | Displays a system menu (Windows and Motif only). |
8c6791e4 | 40 | @style{wxTINY_CAPTION_HORIZ} |
23324ae1 | 41 | This style is obsolete and not used any longer. |
8c6791e4 | 42 | @style{wxTINY_CAPTION_VERT} |
23324ae1 | 43 | This style is obsolete and not used any longer. |
8c6791e4 | 44 | @style{wxRESIZE_BORDER} |
23324ae1 FM |
45 | Displays a resizeable border around the window. |
46 | @endStyleTable | |
7c913512 | 47 | |
23324ae1 FM |
48 | @library{wxcore} |
49 | @category{managedwnd} | |
7c913512 | 50 | |
e54c96f1 | 51 | @see wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog |
23324ae1 FM |
52 | */ |
53 | class wxMiniFrame : public wxFrame | |
54 | { | |
55 | public: | |
56 | //@{ | |
57 | /** | |
58 | Constructor, creating the window. | |
3c4f71cc | 59 | |
7c913512 | 60 | @param parent |
4cc4bfaf FM |
61 | The window parent. This may be @NULL. If it is non-@NULL, the frame will |
62 | always be displayed on top of the parent window on Windows. | |
7c913512 | 63 | @param id |
4cc4bfaf FM |
64 | The window identifier. It may take a value of -1 to indicate a default |
65 | value. | |
7c913512 | 66 | @param title |
4cc4bfaf | 67 | The caption to be displayed on the frame's title bar. |
7c913512 | 68 | @param pos |
4cc4bfaf FM |
69 | The window position. The value wxDefaultPosition indicates a default position, |
70 | chosen by | |
71 | either the windowing system or wxWidgets, depending on platform. | |
7c913512 | 72 | @param size |
4cc4bfaf FM |
73 | The window size. The value wxDefaultSize indicates a default size, chosen by |
74 | either the windowing system or wxWidgets, depending on platform. | |
7c913512 | 75 | @param style |
4cc4bfaf | 76 | The window style. See wxMiniFrame. |
7c913512 | 77 | @param name |
4cc4bfaf | 78 | The name of the window. This parameter is used to associate a name with the |
23324ae1 | 79 | item, |
4cc4bfaf FM |
80 | allowing the application user to set Motif resource values for |
81 | individual windows. | |
3c4f71cc | 82 | |
23324ae1 | 83 | @remarks The frame behaves like a normal frame on non-Windows platforms. |
3c4f71cc | 84 | |
4cc4bfaf | 85 | @see Create() |
23324ae1 FM |
86 | */ |
87 | wxMiniFrame(); | |
7c913512 FM |
88 | wxMiniFrame(wxWindow* parent, wxWindowID id, |
89 | const wxString& title, | |
90 | const wxPoint& pos = wxDefaultPosition, | |
91 | const wxSize& size = wxDefaultSize, | |
92 | long style = wxCAPTION | wxRESIZE_BORDER, | |
93 | const wxString& name = "frame"); | |
23324ae1 FM |
94 | //@} |
95 | ||
96 | /** | |
97 | Destructor. Destroys all child windows and menu bar if present. | |
98 | */ | |
99 | ~wxMiniFrame(); | |
100 | ||
101 | /** | |
102 | Used in two-step frame construction. See wxMiniFrame() | |
103 | for further details. | |
104 | */ | |
105 | bool Create(wxWindow* parent, wxWindowID id, | |
106 | const wxString& title, | |
107 | const wxPoint& pos = wxDefaultPosition, | |
108 | const wxSize& size = wxDefaultSize, | |
109 | long style = wxCAPTION | wxRESIZE_BORDER, | |
110 | const wxString& name = "frame"); | |
111 | }; | |
e54c96f1 | 112 |