]> git.saurik.com Git - wxWidgets.git/blame - interface/minifram.h
don't style using Doxygen tags; use <span> tags and CSS instead
[wxWidgets.git] / interface / minifram.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: minifram.h
3// Purpose: documentation for wxMiniFrame class
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"
23324ae1 19 using the "Mini frame'' command of the "Generic dialogs'' submenu.
7c913512 20
23324ae1
FM
21 @beginStyleTable
22 @style{wxICONIZE}:
23 Display the frame iconized (minimized) (Windows only).
24 @style{wxCAPTION}:
25 Puts a caption on the frame.
26 @style{wxMINIMIZE}:
27 Identical to wxICONIZE.
28 @style{wxMINIMIZE_BOX}:
29 Displays a minimize box on the frame (Windows and Motif only).
30 @style{wxMAXIMIZE}:
31 Displays the frame maximized (Windows only).
32 @style{wxMAXIMIZE_BOX}:
33 Displays a maximize box on the frame (Windows and Motif only).
34 @style{wxCLOSE_BOX}:
35 Displays a close box on the frame.
36 @style{wxSTAY_ON_TOP}:
37 Stay on top of other windows (Windows only).
38 @style{wxSYSTEM_MENU}:
39 Displays a system menu (Windows and Motif only).
40 @style{wxTINY_CAPTION_HORIZ}:
41 This style is obsolete and not used any longer.
42 @style{wxTINY_CAPTION_VERT}:
43 This style is obsolete and not used any longer.
44 @style{wxRESIZE_BORDER}:
45 Displays a resizeable border around the window.
46 @endStyleTable
7c913512 47
23324ae1
FM
48 @library{wxcore}
49 @category{managedwnd}
7c913512 50
23324ae1
FM
51 @seealso
52 wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog
53*/
54class wxMiniFrame : public wxFrame
55{
56public:
57 //@{
58 /**
59 Constructor, creating the window.
60
7c913512 61 @param parent
23324ae1
FM
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.
64
7c913512 65 @param id
23324ae1
FM
66 The window identifier. It may take a value of -1 to indicate a default value.
67
7c913512 68 @param title
23324ae1
FM
69 The caption to be displayed on the frame's title bar.
70
7c913512 71 @param pos
23324ae1
FM
72 The window position. The value wxDefaultPosition indicates a default position, chosen by
73 either the windowing system or wxWidgets, depending on platform.
74
7c913512 75 @param size
23324ae1
FM
76 The window size. The value wxDefaultSize indicates a default size, chosen by
77 either the windowing system or wxWidgets, depending on platform.
78
7c913512 79 @param style
23324ae1
FM
80 The window style. See wxMiniFrame.
81
7c913512 82 @param name
23324ae1
FM
83 The name of the window. This parameter is used to associate a name with the
84 item,
85 allowing the application user to set Motif resource values for
86 individual windows.
87
88 @remarks The frame behaves like a normal frame on non-Windows platforms.
89
90 @sa Create()
91 */
92 wxMiniFrame();
7c913512
FM
93 wxMiniFrame(wxWindow* parent, wxWindowID id,
94 const wxString& title,
95 const wxPoint& pos = wxDefaultPosition,
96 const wxSize& size = wxDefaultSize,
97 long style = wxCAPTION | wxRESIZE_BORDER,
98 const wxString& name = "frame");
23324ae1
FM
99 //@}
100
101 /**
102 Destructor. Destroys all child windows and menu bar if present.
103 */
104 ~wxMiniFrame();
105
106 /**
107 Used in two-step frame construction. See wxMiniFrame()
108 for further details.
109 */
110 bool Create(wxWindow* parent, wxWindowID id,
111 const wxString& title,
112 const wxPoint& pos = wxDefaultPosition,
113 const wxSize& size = wxDefaultSize,
114 long style = wxCAPTION | wxRESIZE_BORDER,
115 const wxString& name = "frame");
116};