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