]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/minifram.h
Remove wrong const from wxMenu::GetMenuItems() documentation.
[wxWidgets.git] / interface / wx / minifram.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: minifram.h
e54c96f1 3// Purpose: interface of wxMiniFrame
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
526954c5 6// Licence: wxWindows licence
23324ae1
FM
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxMiniFrame
7c913512 11
ba1d7a6c
FM
12 A miniframe is a frame with a small title bar.
13 It is suitable for floating toolbars that must not take up too much screen area.
7c913512 14
ba1d7a6c 15 An example of mini frame can be seen in the @ref page_samples_dialogs
cdbcf4c2 16 using the "Mini frame" command of the "Generic dialogs" submenu.
7c913512 17
23324ae1 18 @beginStyleTable
8c6791e4 19 @style{wxICONIZE}
ba1d7a6c 20 Display the frame iconized (minimized) (Windows only).
8c6791e4 21 @style{wxCAPTION}
ba1d7a6c 22 Puts a caption on the frame.
8c6791e4 23 @style{wxMINIMIZE}
ba1d7a6c 24 Identical to wxICONIZE.
8c6791e4 25 @style{wxMINIMIZE_BOX}
ba1d7a6c 26 Displays a minimize box on the frame (Windows and Motif only).
8c6791e4 27 @style{wxMAXIMIZE}
ba1d7a6c 28 Displays the frame maximized (Windows only).
8c6791e4 29 @style{wxMAXIMIZE_BOX}
ba1d7a6c 30 Displays a maximize box on the frame (Windows and Motif only).
8c6791e4 31 @style{wxCLOSE_BOX}
ba1d7a6c 32 Displays a close box on the frame.
8c6791e4 33 @style{wxSTAY_ON_TOP}
ba1d7a6c 34 Stay on top of other windows (Windows only).
8c6791e4 35 @style{wxSYSTEM_MENU}
ba1d7a6c 36 Displays a system menu (Windows and Motif only).
8c6791e4 37 @style{wxRESIZE_BORDER}
d13b34d3 38 Displays a resizable border around the window.
23324ae1 39 @endStyleTable
7c913512 40
ba1d7a6c
FM
41 @remarks
42 This class has miniframe functionality under Windows and GTK, i.e. the presence
43 of mini frame will not be noted in the task bar and focus behaviour is different.
44 On other platforms, it behaves like a normal frame.
45
23324ae1
FM
46 @library{wxcore}
47 @category{managedwnd}
7c913512 48
e54c96f1 49 @see wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog
23324ae1
FM
50*/
51class wxMiniFrame : public wxFrame
52{
53public:
ba1d7a6c
FM
54 /**
55 Default ctor.
56 */
57 wxMiniFrame();
58
23324ae1
FM
59 /**
60 Constructor, creating the window.
3c4f71cc 61
7c913512 62 @param parent
4cc4bfaf
FM
63 The window parent. This may be @NULL. If it is non-@NULL, the frame will
64 always be displayed on top of the parent window on Windows.
7c913512 65 @param id
ba1d7a6c 66 The window identifier. It may take a value of -1 to indicate a default value.
7c913512 67 @param title
4cc4bfaf 68 The caption to be displayed on the frame's title bar.
7c913512 69 @param pos
4cc4bfaf 70 The window position. The value wxDefaultPosition indicates a default position,
ba1d7a6c 71 chosen by 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
ba1d7a6c
FM
78 The name of the window. This parameter is used to associate a name with
79 the item, allowing the application user to set Motif resource values for
4cc4bfaf 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 85 */
7c913512
FM
86 wxMiniFrame(wxWindow* parent, wxWindowID id,
87 const wxString& title,
88 const wxPoint& pos = wxDefaultPosition,
89 const wxSize& size = wxDefaultSize,
90 long style = wxCAPTION | wxRESIZE_BORDER,
408776d0 91 const wxString& name = wxFrameNameStr);
23324ae1
FM
92
93 /**
94 Destructor. Destroys all child windows and menu bar if present.
95 */
adaaa686 96 virtual ~wxMiniFrame();
23324ae1
FM
97
98 /**
ba1d7a6c
FM
99 Used in two-step frame construction.
100 See wxMiniFrame() for further details.
23324ae1 101 */
43c48e1e 102 bool Create(wxWindow* parent, wxWindowID id, const wxString& title,
23324ae1
FM
103 const wxPoint& pos = wxDefaultPosition,
104 const wxSize& size = wxDefaultSize,
105 long style = wxCAPTION | wxRESIZE_BORDER,
43c48e1e 106 const wxString& name = wxFrameNameStr);
23324ae1 107};
e54c96f1 108