]>
Commit | Line | Data |
---|---|---|
a660d684 KB |
1 | \section{\class{wxMiniFrame}}\label{wxminiframe} |
2 | ||
3 | A miniframe is a frame with a small title bar. It is suitable for floating toolbars that must not | |
4 | take up too much screen area. | |
5 | ||
1baa0a9d VZ |
6 | An example of mini frame can be seen in the \helpref{dialogs sample}{sampledialogs} |
7 | using the ``Mini frame'' command of the ``Generic dialogs'' submenu. | |
8 | ||
a660d684 KB |
9 | \wxheading{Derived from} |
10 | ||
11 | \helpref{wxFrame}{wxframe}\\ | |
12 | \helpref{wxWindow}{wxwindow}\\ | |
13 | \helpref{wxEvtHandler}{wxevthandler}\\ | |
14 | \helpref{wxObject}{wxobject} | |
15 | ||
954b8ae6 JS |
16 | \wxheading{Include files} |
17 | ||
18 | <wx/minifram.h> | |
19 | ||
a7af285d VZ |
20 | \wxheading{Library} |
21 | ||
22 | \helpref{wxCore}{librarieslist} | |
23 | ||
a660d684 KB |
24 | \wxheading{Window styles} |
25 | ||
26 | \twocolwidtha{5cm} | |
27 | \begin{twocollist}\itemsep=0pt | |
28 | \twocolitem{\windowstyle{wxICONIZE}}{Display the frame iconized (minimized) (Windows only).} | |
29 | \twocolitem{\windowstyle{wxCAPTION}}{Puts a caption on the frame.} | |
a660d684 KB |
30 | \twocolitem{\windowstyle{wxMINIMIZE}}{Identical to {\bf wxICONIZE}.} |
31 | \twocolitem{\windowstyle{wxMINIMIZE\_BOX}}{Displays a minimize box on the frame (Windows and Motif only).} | |
32 | \twocolitem{\windowstyle{wxMAXIMIZE}}{Displays the frame maximized (Windows only).} | |
33 | \twocolitem{\windowstyle{wxMAXIMIZE\_BOX}}{Displays a maximize box on the frame (Windows and Motif only).} | |
850c6ed4 | 34 | \twocolitem{\windowstyle{wxCLOSE\_BOX}}{Displays a close box on the frame.} |
a660d684 KB |
35 | \twocolitem{\windowstyle{wxSTAY\_ON\_TOP}}{Stay on top of other windows (Windows only).} |
36 | \twocolitem{\windowstyle{wxSYSTEM\_MENU}}{Displays a system menu (Windows and Motif only).} | |
335f20cb VZ |
37 | \twocolitem{\windowstyle{wxTINY\_CAPTION\_HORIZ}}{This style is obsolete and |
38 | not used any longer.} | |
39 | \twocolitem{\windowstyle{wxTINY\_CAPTION\_VERT}}{This style is obsolete and not | |
40 | used any longer.} | |
1d4758e1 | 41 | \twocolitem{\windowstyle{wxRESIZE\_BORDER}}{Displays a resizeable border around the window.} |
a660d684 KB |
42 | \end{twocollist} |
43 | ||
a660d684 KB |
44 | \wxheading{Remarks} |
45 | ||
f37615d7 RR |
46 | This class has miniframe functionality under Windows and GTK, i.e. the presence |
47 | of mini frame will not be noted in the task bar and focus behaviour is different. | |
48 | On other platforms, it behaves like a normal frame. | |
a660d684 KB |
49 | |
50 | \wxheading{See also} | |
51 | ||
52 | \helpref{wxMDIParentFrame}{wxmdiparentframe}, \helpref{wxMDIChildFrame}{wxmdichildframe},\rtfsp | |
53 | \helpref{wxFrame}{wxframe}, \helpref{wxDialog}{wxdialog} | |
54 | ||
55 | \latexignore{\rtfignore{\wxheading{Members}}} | |
56 | ||
3e79fa75 | 57 | \membersection{wxMiniFrame::wxMiniFrame}\label{wxminiframector} |
a660d684 KB |
58 | |
59 | \func{}{wxMiniFrame}{\void} | |
60 | ||
61 | Default constructor. | |
62 | ||
eaaa6a06 | 63 | \func{}{wxMiniFrame}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp |
a660d684 | 64 | \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},\rtfsp |
175fd114 | 65 | \param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = wxCAPTION | wxRESIZE\_BORDER},\rtfsp |
a660d684 KB |
66 | \param{const wxString\& }{name = ``frame"}} |
67 | ||
68 | Constructor, creating the window. | |
69 | ||
70 | \wxheading{Parameters} | |
71 | ||
72 | \docparam{parent}{The window parent. This may be NULL. If it is non-NULL, the frame will | |
73 | always be displayed on top of the parent window on Windows.} | |
74 | ||
75 | \docparam{id}{The window identifier. It may take a value of -1 to indicate a default value.} | |
76 | ||
77 | \docparam{title}{The caption to be displayed on the frame's title bar.} | |
78 | ||
79 | \docparam{pos}{The window position. A value of (-1, -1) indicates a default position, chosen by | |
fc2171bd | 80 | either the windowing system or wxWidgets, depending on platform.} |
a660d684 KB |
81 | |
82 | \docparam{size}{The window size. A value of (-1, -1) indicates a default size, chosen by | |
fc2171bd | 83 | either the windowing system or wxWidgets, depending on platform.} |
a660d684 KB |
84 | |
85 | \docparam{style}{The window style. See \helpref{wxMiniFrame}{wxminiframe}.} | |
86 | ||
87 | \docparam{name}{The name of the window. This parameter is used to associate a name with the item, | |
88 | allowing the application user to set Motif resource values for | |
89 | individual windows.} | |
90 | ||
91 | \wxheading{Remarks} | |
92 | ||
93 | The frame behaves like a normal frame on non-Windows platforms. | |
94 | ||
95 | \wxheading{See also} | |
96 | ||
97 | \helpref{wxMiniFrame::Create}{wxminiframecreate} | |
98 | ||
3e79fa75 | 99 | \membersection{wxMiniFrame::\destruct{wxMiniFrame}}\label{wxminiframedtor} |
a660d684 KB |
100 | |
101 | \func{void}{\destruct{wxMiniFrame}}{\void} | |
102 | ||
103 | Destructor. Destroys all child windows and menu bar if present. | |
104 | ||
105 | \membersection{wxMiniFrame::Create}\label{wxminiframecreate} | |
106 | ||
eaaa6a06 | 107 | \func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp |
a660d684 | 108 | \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},\rtfsp |
175fd114 | 109 | \param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = wxCAPTION | wxRESIZE\_BORDER},\rtfsp |
a660d684 KB |
110 | \param{const wxString\& }{name = ``frame"}} |
111 | ||
3e79fa75 | 112 | Used in two-step frame construction. See \helpref{wxMiniFrame::wxMiniFrame}{wxminiframector}\rtfsp |
a660d684 KB |
113 | for further details. |
114 | ||
115 | ||
116 |