]>
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 | |
7c913512 | 11 | |
23324ae1 FM |
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. | |
7c913512 | 15 | |
23324ae1 | 16 | An example of mini frame can be seen in the @ref overview_sampledialogs |
7c913512 | 17 | "dialogs sample" |
cdbcf4c2 | 18 | using the "Mini frame" command of the "Generic dialogs" submenu. |
7c913512 | 19 | |
23324ae1 | 20 | @beginStyleTable |
8c6791e4 | 21 | @style{wxICONIZE} |
23324ae1 | 22 | Display the frame iconized (minimized) (Windows only). |
8c6791e4 | 23 | @style{wxCAPTION} |
23324ae1 | 24 | Puts a caption on the frame. |
8c6791e4 | 25 | @style{wxMINIMIZE} |
23324ae1 | 26 | Identical to wxICONIZE. |
8c6791e4 | 27 | @style{wxMINIMIZE_BOX} |
23324ae1 | 28 | Displays a minimize box on the frame (Windows and Motif only). |
8c6791e4 | 29 | @style{wxMAXIMIZE} |
23324ae1 | 30 | Displays the frame maximized (Windows only). |
8c6791e4 | 31 | @style{wxMAXIMIZE_BOX} |
23324ae1 | 32 | Displays a maximize box on the frame (Windows and Motif only). |
8c6791e4 | 33 | @style{wxCLOSE_BOX} |
23324ae1 | 34 | Displays a close box on the frame. |
8c6791e4 | 35 | @style{wxSTAY_ON_TOP} |
23324ae1 | 36 | Stay on top of other windows (Windows only). |
8c6791e4 | 37 | @style{wxSYSTEM_MENU} |
23324ae1 | 38 | Displays a system menu (Windows and Motif only). |
8c6791e4 | 39 | @style{wxTINY_CAPTION_HORIZ} |
23324ae1 | 40 | This style is obsolete and not used any longer. |
8c6791e4 | 41 | @style{wxTINY_CAPTION_VERT} |
23324ae1 | 42 | This style is obsolete and not used any longer. |
8c6791e4 | 43 | @style{wxRESIZE_BORDER} |
23324ae1 FM |
44 | Displays a resizeable border around the window. |
45 | @endStyleTable | |
7c913512 | 46 | |
23324ae1 FM |
47 | @library{wxcore} |
48 | @category{managedwnd} | |
7c913512 | 49 | |
e54c96f1 | 50 | @see wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog |
23324ae1 FM |
51 | */ |
52 | class wxMiniFrame : public wxFrame | |
53 | { | |
54 | public: | |
55 | //@{ | |
56 | /** | |
57 | Constructor, creating the window. | |
3c4f71cc | 58 | |
7c913512 | 59 | @param parent |
4cc4bfaf FM |
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. | |
7c913512 | 62 | @param id |
4cc4bfaf FM |
63 | The window identifier. It may take a value of -1 to indicate a default |
64 | value. | |
7c913512 | 65 | @param title |
4cc4bfaf | 66 | The caption to be displayed on the frame's title bar. |
7c913512 | 67 | @param pos |
4cc4bfaf FM |
68 | The window position. The value wxDefaultPosition indicates a default position, |
69 | chosen by | |
70 | either the windowing system or wxWidgets, depending on platform. | |
7c913512 | 71 | @param size |
4cc4bfaf FM |
72 | The window size. The value wxDefaultSize indicates a default size, chosen by |
73 | either the windowing system or wxWidgets, depending on platform. | |
7c913512 | 74 | @param style |
4cc4bfaf | 75 | The window style. See wxMiniFrame. |
7c913512 | 76 | @param name |
4cc4bfaf | 77 | The name of the window. This parameter is used to associate a name with the |
23324ae1 | 78 | item, |
4cc4bfaf FM |
79 | allowing the application user to set Motif resource values for |
80 | individual windows. | |
3c4f71cc | 81 | |
23324ae1 | 82 | @remarks The frame behaves like a normal frame on non-Windows platforms. |
3c4f71cc | 83 | |
4cc4bfaf | 84 | @see Create() |
23324ae1 FM |
85 | */ |
86 | wxMiniFrame(); | |
7c913512 FM |
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"); | |
23324ae1 FM |
93 | //@} |
94 | ||
95 | /** | |
96 | Destructor. Destroys all child windows and menu bar if present. | |
97 | */ | |
adaaa686 | 98 | virtual ~wxMiniFrame(); |
23324ae1 FM |
99 | |
100 | /** | |
101 | Used in two-step frame construction. See wxMiniFrame() | |
102 | for further details. | |
103 | */ | |
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"); | |
110 | }; | |
e54c96f1 | 111 |