1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
|
<HTML>
<head><title>wxMiniFrame</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxminiframe"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx147.htm#wxmimetypesmanager"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx149.htm#wxmodule"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxMiniFrame</H2>
<P>
A miniframe is a frame with a small title bar. It is suitable for floating toolbars that must not
take up too much screen area.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx104.htm#wxframe">wxFrame</A><BR>
<A HREF="wx260.htm#wxwindow">wxWindow</A><BR>
<A HREF="wx85.htm#wxevthandler">wxEvtHandler</A><BR>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/minifram.h><P>
<B><FONT COLOR="#FF0000">Window styles</FONT></B><P>
<TABLE>
<TR><TD VALIGN=TOP>
<B>wxICONIZE</B>
</TD>
<TD VALIGN=TOP>
Display the frame iconized (minimized) (Windows only).
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxCAPTION</B>
</TD>
<TD VALIGN=TOP>
Puts a caption on the frame.
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxDEFAULT_FRAME_STYLE</B>
</TD>
<TD VALIGN=TOP>
Defined as <B>wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxTHICK_FRAME | wxSYSTEM_MENU | wxCAPTION</B>.
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxMINIMIZE</B>
</TD>
<TD VALIGN=TOP>
Identical to <B>wxICONIZE</B>.
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxMINIMIZE_BOX</B>
</TD>
<TD VALIGN=TOP>
Displays a minimize box on the frame (Windows and Motif only).
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxMAXIMIZE</B>
</TD>
<TD VALIGN=TOP>
Displays the frame maximized (Windows only).
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxMAXIMIZE_BOX</B>
</TD>
<TD VALIGN=TOP>
Displays a maximize box on the frame (Windows and Motif only).
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxSTAY_ON_TOP</B>
</TD>
<TD VALIGN=TOP>
Stay on top of other windows (Windows only).
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxSYSTEM_MENU</B>
</TD>
<TD VALIGN=TOP>
Displays a system menu (Windows and Motif only).
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxTHICK_FRAME</B>
</TD>
<TD VALIGN=TOP>
Displays a thick frame around the window (Windows and Motif only).
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxTINY_CAPTION_HORIZ</B>
</TD>
<TD VALIGN=TOP>
Displays a small horizontal caption. Use instead of
wxCAPTION.
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxTINY_CAPTION_VERT</B>
</TD>
<TD VALIGN=TOP>
Under Windows, displays a small vertical caption. Use instead of
wxCAPTION.
</TD></TR>
<TR><TD VALIGN=TOP>
<B>wxRESIZE_BORDER</B>
</TD>
<TD VALIGN=TOP>
Displays a resizeable border around the window (Motif only;
for Windows, it is implicit in <B>wxTHICK_FRAME</B>).
</TD></TR>
</TABLE>
<P>
See also <A HREF="wx305.htm#windowstyles">window styles overview</A>. Note that all the window styles
above are ignored under GTK and the mini frame cannot be resized by the user.<P>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
This class has miniframe functionality under Windows and GTK, i.e. the presence
of mini frame will not be noted in the task bar and focus behaviour is different.
On other platforms, it behaves like a normal frame.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx136.htm#wxmdiparentframe">wxMDIParentFrame</A>, <A HREF="wx134.htm#wxmdichildframe">wxMDIChildFrame</A>,
<A HREF="wx104.htm#wxframe">wxFrame</A>, <A HREF="wx71.htm#wxdialog">wxDialog</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxminiframeconstr">wxMiniFrame::wxMiniFrame</A><BR>
<A HREF="#topic573">wxMiniFrame::~wxMiniFrame</A><BR>
<A HREF="#wxminiframecreate">wxMiniFrame::Create</A><BR>
<P>
<HR>
<A NAME="wxminiframeconstr"></A>
<H3>wxMiniFrame::wxMiniFrame</H3>
<P>
<B></B> <B>wxMiniFrame</B>()<P>
Default constructor.<P>
<B></B> <B>wxMiniFrame</B>(<B>wxWindow* </B><I>parent</I>, <B>wxWindowID </B><I>id</I>,
<B>const wxString& </B><I>title</I>, <B>const wxPoint&</B><I> pos = wxDefaultPosition</I>,
<B>const wxSize&</B><I> size = wxDefaultSize</I>, <B>long</B><I> style = wxDEFAULT_FRAME_STYLE</I>,
<B>const wxString& </B><I>name = "frame"</I>)<P>
Constructor, creating the window.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>parent</I><UL><UL>
The window parent. This may be NULL. If it is non-NULL, the frame will
always be displayed on top of the parent window on Windows.</UL></UL>
<P>
<I>id</I><UL><UL>
The window identifier. It may take a value of -1 to indicate a default value.</UL></UL>
<P>
<I>title</I><UL><UL>
The caption to be displayed on the frame's title bar.</UL></UL>
<P>
<I>pos</I><UL><UL>
The window position. A value of (-1, -1) indicates a default position, chosen by
either the windowing system or wxWindows, depending on platform.</UL></UL>
<P>
<I>size</I><UL><UL>
The window size. A value of (-1, -1) indicates a default size, chosen by
either the windowing system or wxWindows, depending on platform.</UL></UL>
<P>
<I>style</I><UL><UL>
The window style. See <A HREF="wx148.htm#wxminiframe">wxMiniFrame</A>.</UL></UL>
<P>
<I>name</I><UL><UL>
The name of the window. This parameter is used to associate a name with the item,
allowing the application user to set Motif resource values for
individual windows.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
The frame behaves like a normal frame on non-Windows platforms.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx148.htm#wxminiframecreate">wxMiniFrame::Create</A><P>
<HR>
<A NAME="topic573"></A>
<H3>wxMiniFrame::~wxMiniFrame</H3>
<P>
<B>void</B> <B>~wxMiniFrame</B>()<P>
Destructor. Destroys all child windows and menu bar if present.<P>
<HR>
<A NAME="wxminiframecreate"></A>
<H3>wxMiniFrame::Create</H3>
<P>
<B>bool</B> <B>Create</B>(<B>wxWindow* </B><I>parent</I>, <B>wxWindowID </B><I>id</I>,
<B>const wxString& </B><I>title</I>, <B>const wxPoint&</B><I> pos = wxDefaultPosition</I>,
<B>const wxSize&</B><I> size = wxDefaultSize</I>, <B>long</B><I> style = wxDEFAULT_FRAME_STYLE</I>,
<B>const wxString& </B><I>name = "frame"</I>)<P>
Used in two-step frame construction. See <A HREF="wx148.htm#wxminiframeconstr">wxMiniFrame::wxMiniFrame</A>
for further details.<P>
<P>
</BODY></HTML>
|