1 \section{\class{wxFrame
}}\label{wxframe
}
3 A frame is a window whose size and position can (usually) be changed by the
4 user. It usually has thick borders and a title bar, and can optionally contain
5 a menu bar, toolbar and status bar. A frame can contain any window that is not
8 A frame that has a status bar and toolbar created via the
9 CreateStatusBar/CreateToolBar functions manages these windows, and adjusts the
10 value returned by GetClientSize to reflect the remaining size available to
13 \wxheading{Derived from
}
15 \helpref{wxWindow
}{wxwindow
}\\
16 \helpref{wxEvtHandler
}{wxevthandler
}\\
17 \helpref{wxObject
}{wxobject
}
19 \wxheading{Include files
}
23 \wxheading{Window styles
}
26 \begin{twocollist
}\itemsep=
0pt
27 \twocolitem{\windowstyle{wxDEFAULT
\_FRAME\_STYLE}}{Defined as
{\bf wxMINIMIZE
\_BOX \pipe wxMAXIMIZE
\_BOX \pipe wxRESIZE
\_BORDER \pipe wxSYSTEM
\_MENU \pipe wxCAPTION
\pipe wxCLOSE
\_BOX}.
}
28 \twocolitem{\windowstyle{wxICONIZE
}}{Display the frame iconized (minimized). Windows only.
}
29 \twocolitem{\windowstyle{wxCAPTION
}}{Puts a caption on the frame.
}
30 \twocolitem{\windowstyle{wxMINIMIZE
}}{Identical to
{\bf wxICONIZE
}. Windows only.
}
31 \twocolitem{\windowstyle{wxMINIMIZE
\_BOX}}{Displays a minimize box on the frame.
}
32 \twocolitem{\windowstyle{wxMAXIMIZE
}}{Displays the frame maximized. Windows only.
}
33 \twocolitem{\windowstyle{wxMAXIMIZE
\_BOX}}{Displays a maximize box on the frame.
}
34 \twocolitem{\windowstyle{wxCLOSE
\_BOX}}{Displays a close box on the frame.
}
35 \twocolitem{\windowstyle{wxSTAY
\_ON\_TOP}}{Stay on top of all other windows,
36 see also wxFRAME
\_FLOAT\_ON\_PARENT. Windows only.
}
37 \twocolitem{\windowstyle{wxSYSTEM
\_MENU}}{Displays a system menu.
}
38 \twocolitem{\windowstyle{wxSIMPLE
\_BORDER}}{Displays no border or decorations. GTK and Windows only.
}
39 \twocolitem{\windowstyle{wxRESIZE
\_BORDER}}{Displays a resizeable border around the window.
}
40 \twocolitem{\windowstyle{wxFRAME
\_TOOL\_WINDOW}}{Causes a frame with a small
41 titlebar to be created; the frame does not appear in the taskbar under Windows.
}
42 \twocolitem{\windowstyle{wxFRAME
\_NO\_TASKBAR}}{Creates an otherwise normal
43 frame but it does not appear in the taskbar under Windows (note that it will
44 minimize to the desktop window which may seem strange to the users and thus it
45 might be better to use this style only without wxMINIMIZE
\_BOX style).
46 Has no effect under other platforms.
}
47 \twocolitem{\windowstyle{wxFRAME
\_FLOAT\_ON\_PARENT}}{The frame will always be
48 on top of its parent (unlike wxSTAY
\_ON\_TOP). A frame created with this style
49 must have a non-NULL parent.
}
50 \twocolitem{\windowstyle{wxFRAME
\_EX\_CONTEXTHELP}}{Under Windows, puts a query button on the
51 caption. When pressed, Windows will go into a context-sensitive help mode and wxWindows will send
52 a wxEVT
\_HELP event if the user clicked on an application window.
{\it Note
} that this is an extended
53 style and must be set by calling
\helpref{SetExtraStyle
}{wxwindowsetextrastyle
} before Create is called (two-step construction).
54 You cannot use this style together with wxMAXIMIZE
\_BOX or wxMINIMIZE
\_BOX, so
56 {\tt wxDEFAULT
\_FRAME\_STYLE \& (wxMINIMIZE
\_BOX | wxMAXIMIZE
\_BOX)
} for the
57 frames having this style (the dialogs don't have minimize nor maximize box by
59 \twocolitem{\windowstyle{wxFRAME
\_SHAPED}}{Windows with this style are
60 allowed to have their shape changed with the
\helpref{SetShape
}{wxframesetshape
} method.
}
63 The default frame style is for normal, resizeable frames. To create a frame
64 which can not be resized by user, you may use the following combination of
65 styles:
{\tt wxDEFAULT
\_FRAME\_STYLE \& (wxRESIZE
\_BORDER \pipe wxRESIZE
\_BOX \pipe wxMAXIMIZE
\_BOX)
}.
66 % Note: the space after the tilde is necessary or Tex2RTF complains.
68 See also
\helpref{window styles overview
}{windowstyles
}.
70 \wxheading{Default event processing
}
72 wxFrame processes the following events:
74 \begin{twocollist
}\itemsep=
0pt
75 \twocolitem{\helpref{wxEVT
\_SIZE}{wxsizeevent
}}{If the frame has exactly one
76 child window, not counting the status and toolbar, this child is resized to
77 take the entire frame client area. If two or more windows are present, they
78 should be laid out explicitly either by manually handling wxEVT
\_SIZE or using
79 \helpref{sizers
}{sizeroverview
}}
81 \twocolitem{\helpref{wxEVT
\_MENU\_HIGHLIGHT}{wxmenuevent
}}{The default
82 implementation displays the
\helpref{help string
}{wxmenuitemgethelp
} associated
83 with the selected item in the first pane of the status bar, if there is one.
}
88 An application should normally define an
\helpref{wxCloseEvent
}{wxcloseevent
} handler for the
89 frame to respond to system close events, for example so that related data and subwindows can be cleaned up.
93 \helpref{wxMDIParentFrame
}{wxmdiparentframe
},
\helpref{wxMDIChildFrame
}{wxmdichildframe
},
\rtfsp
94 \helpref{wxMiniFrame
}{wxminiframe
},
\helpref{wxDialog
}{wxdialog
}
96 \latexignore{\rtfignore{\wxheading{Members
}}}
98 \membersection{wxFrame::wxFrame
}\label{wxframeconstr
}
100 \func{}{wxFrame
}{\void}
104 \func{}{wxFrame
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
105 \param{const wxString\&
}{title
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\rtfsp
106 \param{const wxSize\&
}{ size = wxDefaultSize
},
\param{long
}{ style = wxDEFAULT
\_FRAME\_STYLE},
\rtfsp
107 \param{const wxString\&
}{name = ``frame"
}}
109 Constructor, creating the window.
111 \wxheading{Parameters
}
113 \docparam{parent
}{The window parent. This may be NULL. If it is non-NULL, the frame will
114 always be displayed on top of the parent window on Windows.
}
116 \docparam{id
}{The window identifier. It may take a value of -
1 to indicate a default value.
}
118 \docparam{title
}{The caption to be displayed on the frame's title bar.
}
120 \docparam{pos
}{The window position. A value of (-
1, -
1) indicates a default position, chosen by
121 either the windowing system or wxWindows, depending on platform.
}
123 \docparam{size
}{The window size. A value of (-
1, -
1) indicates a default size, chosen by
124 either the windowing system or wxWindows, depending on platform.
}
126 \docparam{style
}{The window style. See
\helpref{wxFrame
}{wxframe
}.
}
128 \docparam{name
}{The name of the window. This parameter is used to associate a name with the item,
129 allowing the application user to set Motif resource values for
134 For Motif, MWM (the Motif Window Manager) should be running for any window styles to work
135 (otherwise all styles take effect).
139 \helpref{wxFrame::Create
}{wxframecreate
}
141 \membersection{wxFrame::
\destruct{wxFrame
}}
143 \func{void
}{\destruct{wxFrame
}}{\void}
145 Destructor. Destroys all child windows and menu bar if present.
147 \membersection{wxFrame::Centre
}\label{wxframecentre
}
149 \func{void
}{Centre
}{\param{int
}{ direction = wxBOTH
}}
151 Centres the frame on the display.
153 \wxheading{Parameters
}
155 \docparam{direction
}{The parameter may be
{\tt wxHORIZONTAL
},
{\tt wxVERTICAL
} or
{\tt wxBOTH
}.
}
157 \membersection{wxFrame::Command
}\label{wxframecommand
}
159 \func{void
}{Command
}{\param{int
}{id
}}
161 Simulate a menu command.
163 \wxheading{Parameters
}
165 \docparam{id
}{The identifier for a menu item.
}
167 \membersection{wxFrame::Create
}\label{wxframecreate
}
169 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
170 \param{const wxString\&
}{title
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\rtfsp
171 \param{const wxSize\&
}{ size = wxDefaultSize
},
\param{long
}{ style = wxDEFAULT
\_FRAME\_STYLE},
\rtfsp
172 \param{const wxString\&
}{name = ``frame"
}}
174 Used in two-step frame construction. See
\helpref{wxFrame::wxFrame
}{wxframeconstr
}\rtfsp
177 \membersection{wxFrame::CreateStatusBar
}\label{wxframecreatestatusbar
}
179 \func{virtual wxStatusBar*
}{CreateStatusBar
}{\param{int
}{ number =
1},
180 \param{long
}{ style =
0},
181 \param{wxWindowID
}{ id = -
1},
\param{const wxString\&
}{ name = "statusBar"
}}
183 Creates a status bar at the bottom of the frame.
185 \wxheading{Parameters
}
187 \docparam{number
}{The number of fields to create. Specify a
188 value greater than
1 to create a multi-field status bar.
}
190 \docparam{style
}{The status bar style. See
\helpref{wxStatusBar
}{wxstatusbar
} for a list
193 \docparam{id
}{The status bar window identifier. If -
1, an identifier will be chosen by
196 \docparam{name
}{The status bar window name.
}
198 \wxheading{Return value
}
200 A pointer to the the status bar if it was created successfully, NULL otherwise.
204 The width of the status bar is the whole width of the frame (adjusted automatically when
205 resizing), and the height and text size are chosen by the host windowing system.
207 By default, the status bar is an instance of wxStatusBar. To use a different class,
208 override
\helpref{wxFrame::OnCreateStatusBar
}{wxframeoncreatestatusbar
}.
210 Note that you can put controls and other windows on the status bar if you wish.
214 \helpref{wxFrame::SetStatusText
}{wxframesetstatustext
},
\rtfsp
215 \helpref{wxFrame::OnCreateStatusBar
}{wxframeoncreatestatusbar
},
\rtfsp
216 \helpref{wxFrame::GetStatusBar
}{wxframegetstatusbar
}
218 \membersection{wxFrame::CreateToolBar
}\label{wxframecreatetoolbar
}
220 \func{virtual wxToolBar*
}{CreateToolBar
}{\param{long
}{ style = wxNO
\_BORDER \pipe wxTB
\_HORIZONTAL},
221 \param{wxWindowID
}{ id = -
1},
\param{const wxString\&
}{ name = "toolBar"
}}
223 Creates a toolbar at the top or left of the frame.
225 \wxheading{Parameters
}
227 \docparam{style
}{The toolbar style. See
\helpref{wxToolBar
}{wxtoolbar
} for a list
230 \docparam{id
}{The toolbar window identifier. If -
1, an identifier will be chosen by
233 \docparam{name
}{The toolbar window name.
}
235 \wxheading{Return value
}
237 A pointer to the the toolbar if it was created successfully, NULL otherwise.
241 By default, the toolbar is an instance of wxToolBar (which is defined to be
242 a suitable toolbar class on each platform, such as wxToolBar95). To use a different class,
243 override
\helpref{wxFrame::OnCreateToolBar
}{wxframeoncreatetoolbar
}.
245 When a toolbar has been created with this function, or made known to the frame
246 with
\helpref{wxFrame::SetToolBar
}{wxframesettoolbar
}, the frame will manage the toolbar
247 position and adjust the return value from
\helpref{wxWindow::GetClientSize
}{wxwindowgetclientsize
} to
248 reflect the available space for application windows.
252 \helpref{wxFrame::CreateStatusBar
}{wxframecreatestatusbar
},
\rtfsp
253 \helpref{wxFrame::OnCreateToolBar
}{wxframeoncreatetoolbar
},
\rtfsp
254 \helpref{wxFrame::SetToolBar
}{wxframesettoolbar
},
\rtfsp
255 \helpref{wxFrame::GetToolBar
}{wxframegettoolbar
}
257 \membersection{wxFrame::GetClientAreaOrigin
}\label{wxframegetclientareaorigin
}
259 \constfunc{wxPoint
}{GetClientAreaOrigin
}{\void}
261 Returns the origin of the frame client area (in client coordinates). It may be
262 different from (
0,
0) if the frame has a toolbar.
264 \membersection{wxFrame::GetMenuBar
}\label{wxframegetmenubar
}
266 \constfunc{wxMenuBar*
}{GetMenuBar
}{\void}
268 Returns a pointer to the menubar currently associated with the frame (if any).
272 \helpref{wxFrame::SetMenuBar
}{wxframesetmenubar
},
\helpref{wxMenuBar
}{wxmenubar
},
\helpref{wxMenu
}{wxmenu
}
274 \membersection{wxFrame::GetStatusBar
}\label{wxframegetstatusbar
}
276 \constfunc{wxStatusBar*
}{GetStatusBar
}{\void}
278 Returns a pointer to the status bar currently associated with the frame (if any).
282 \helpref{wxFrame::CreateStatusBar
}{wxframecreatestatusbar
},
\helpref{wxStatusBar
}{wxstatusbar
}
284 \membersection{wxFrame::GetStatusBarPane
}\label{wxframegetstatusbarpane
}
286 \func{int
}{GetStatusBarPane
}{\void}
288 Returns the status bar pane used to display menu and toolbar help.
292 \helpref{wxFrame::SetStatusBarPane
}{wxframesetstatusbarpane
}
294 \membersection{wxFrame::GetTitle
}\label{wxframegettitle
}
296 \constfunc{wxString
}{GetTitle
}{\void}
298 Gets a string containing the frame title. See
\helpref{wxFrame::SetTitle
}{wxframesettitle
}.
300 \membersection{wxFrame::GetToolBar
}\label{wxframegettoolbar
}
302 \constfunc{wxToolBar*
}{GetToolBar
}{\void}
304 Returns a pointer to the toolbar currently associated with the frame (if any).
308 \helpref{wxFrame::CreateToolBar
}{wxframecreatetoolbar
},
\helpref{wxToolBar
}{wxtoolbar
},
\rtfsp
309 \helpref{wxFrame::SetToolBar
}{wxframesettoolbar
}
311 \membersection{wxFrame::Iconize
}\label{wxframeiconize
}
313 \func{void
}{Iconize
}{\param{bool
}{ iconize
}}
315 Iconizes or restores the frame.
317 \wxheading{Parameters
}
319 \docparam{iconize
}{If true, iconizes the frame; if false, shows and restores it.
}
323 \helpref{wxFrame::IsIconized
}{wxframeisiconized
},
\helpref{wxFrame::Maximize
}{wxframemaximize
}.
325 \membersection{wxFrame::IsFullScreen
}\label{wxframeisfullscreen
}
327 \func{bool
}{IsFullScreen
}{\void}
329 Returns true if the frame is in fullscreen mode.
333 \helpref{wxFrame::ShowFullScreen
}{wxframeshowfullscreen
}
335 \membersection{wxFrame::IsIconized
}\label{wxframeisiconized
}
337 \constfunc{bool
}{IsIconized
}{\void}
339 Returns true if the frame is iconized.
341 \membersection{wxFrame::IsMaximized
}\label{wxframeismaximized
}
343 \constfunc{bool
}{IsMaximized
}{\void}
345 Returns true if the frame is maximized.
347 \membersection{wxFrame::Maximize
}\label{wxframemaximize
}
349 \func{void
}{Maximize
}{\param{bool
}{maximize
}}
351 Maximizes or restores the frame.
353 \wxheading{Parameters
}
355 \docparam{maximize
}{If true, maximizes the frame, otherwise it restores it.
}
359 This function only works under Windows.
363 \helpref{wxFrame::Iconize
}{wxframeiconize
}
365 \membersection{wxFrame::OnCreateStatusBar
}\label{wxframeoncreatestatusbar
}
367 \func{virtual wxStatusBar*
}{OnCreateStatusBar
}{\param{int
}{number
},
368 \param{long
}{ style
},
369 \param{wxWindowID
}{ id
},
\param{const wxString\&
}{ name
}}
371 Virtual function called when a status bar is requested by
\helpref{wxFrame::CreateStatusBar
}{wxframecreatestatusbar
}.
373 \wxheading{Parameters
}
375 \docparam{number
}{The number of fields to create.
}
377 \docparam{style
}{The window style. See
\helpref{wxStatusBar
}{wxstatusbar
} for a list
380 \docparam{id
}{The window identifier. If -
1, an identifier will be chosen by
383 \docparam{name
}{The window name.
}
385 \wxheading{Return value
}
391 An application can override this function to return a different kind of status bar. The default
392 implementation returns an instance of
\helpref{wxStatusBar
}{wxstatusbar
}.
396 \helpref{wxFrame::CreateStatusBar
}{wxframecreatestatusbar
},
\helpref{wxStatusBar
}{wxstatusbar
}.
398 \membersection{wxFrame::OnCreateToolBar
}\label{wxframeoncreatetoolbar
}
400 \func{virtual wxToolBar*
}{OnCreateToolBar
}{\param{long
}{ style
},
401 \param{wxWindowID
}{ id
},
\param{const wxString\&
}{ name
}}
403 Virtual function called when a toolbar is requested by
\helpref{wxFrame::CreateToolBar
}{wxframecreatetoolbar
}.
405 \wxheading{Parameters
}
407 \docparam{style
}{The toolbar style. See
\helpref{wxToolBar
}{wxtoolbar
} for a list
410 \docparam{id
}{The toolbar window identifier. If -
1, an identifier will be chosen by
413 \docparam{name
}{The toolbar window name.
}
415 \wxheading{Return value
}
421 An application can override this function to return a different kind of toolbar. The default
422 implementation returns an instance of
\helpref{wxToolBar
}{wxtoolbar
}.
426 \helpref{wxFrame::CreateToolBar
}{wxframecreatetoolbar
},
\helpref{wxToolBar
}{wxtoolbar
}.
428 \membersection{wxFrame::SendSizeEvent
}\label{wxframesendsizeevent
}
430 \func{void
}{SendSizeEvent
}{\void}
432 This function sends a dummy
\helpref{size event
}{wxsizeevent
} to the frame
433 forcing it to reevaluate its children positions. It is sometimes useful to call
434 this function after adding or deleting a children after the frame creation or
435 if a child size changes.
437 Note that if the frame is using either sizers or constraints for the children
438 layout, it is enough to call
\helpref{Layout()
}{wxwindowlayout
} directly and
439 this function should not be used in this case.
441 \membersection{wxFrame::SetIcon
}\label{wxframeseticon
}
443 \func{void
}{SetIcon
}{\param{const wxIcon\&
}{icon
}}
445 Sets the icon for this frame.
447 \wxheading{Parameters
}
449 \docparam{icon
}{The icon to associate with this frame.
}
453 The frame takes a `copy' of
{\it icon
}, but since it uses reference
454 counting, the copy is very quick. It is safe to delete
{\it icon
} after
455 calling this function.
457 See also
\helpref{wxIcon
}{wxicon
}.
459 \membersection{wxFrame::SetIcons
}\label{wxframeseticons
}
461 \func{void
}{SetIcons
}{\param{const wxIconBundle\&
}{icons
}}
463 Sets the icons for this frame.
465 \wxheading{Parameters
}
467 \docparam{icons
}{The icons to associate with this frame.
}
469 See also
\helpref{wxIconBundle
}{wxiconbundle
}.
471 % VZ: we don't have all this any more (18.08.00)
473 %Under Windows, instead of using {\bf SetIcon}, you can add the
474 %following lines to your MS Windows resource file:
477 %wxSTD_MDIPARENTFRAME ICON icon1.ico
478 %wxSTD_MDICHILDFRAME ICON icon2.ico
479 %wxSTD_FRAME ICON icon3.ico
482 %where icon1.ico will be used for the MDI parent frame, icon2.ico
483 %will be used for MDI child frames, and icon3.ico will be used for
486 %If these icons are not supplied, and {\bf SetIcon} is not called either,
487 %then the following defaults apply if you have included wx.rc.
490 %wxDEFAULT_FRAME ICON std.ico
491 %wxDEFAULT_MDIPARENTFRAME ICON mdi.ico
492 %wxDEFAULT_MDICHILDFRAME ICON child.ico
495 %You can replace std.ico, mdi.ico and child.ico with your own defaults
496 %for all your wxWindows application. Currently they show the same icon.
498 \membersection{wxFrame::SetMenuBar
}\label{wxframesetmenubar
}
500 \func{void
}{SetMenuBar
}{\param{wxMenuBar*
}{menuBar
}}
502 Tells the frame to show the given menu bar.
504 \wxheading{Parameters
}
506 \docparam{menuBar
}{The menu bar to associate with the frame.
}
510 If the frame is destroyed, the
511 menu bar and its menus will be destroyed also, so do not delete the menu
512 bar explicitly (except by resetting the frame's menu bar to another
515 Under Windows, a call to
\helpref{wxFrame::OnSize
}{wxframeonsize
} is generated, so be sure to initialize
516 data members properly before calling
{\bf SetMenuBar
}.
518 Note that it is not possible to call this function twice for the same frame object.
522 \helpref{wxFrame::GetMenuBar
}{wxframegetmenubar
},
\helpref{wxMenuBar
}{wxmenubar
},
\helpref{wxMenu
}{wxmenu
}.
524 \membersection{wxFrame::SetShape
}\label{wxframesetshape
}
526 \func{bool
}{SetShape
}{\param{const wxRegion\&
}{ region
}}
528 If the platform supports it, sets the shape of the window to that
529 depicted by
\it{region
}. The system will not display or
530 respond to any mouse event for the pixels that lie outside of the
531 region. To reset the window to the normal rectangular shape simply
532 call
\it{SetShape
} again with an empty region. Returns TRUE if the
533 operation is successful.
535 \membersection{wxFrame::SetStatusBar
}\label{wxframesetstatusbar
}
537 \func{void
}{SetStatusBar
}{\param{wxStatusBar*
}{ statusBar
}}
539 Associates a status bar with the frame.
543 \helpref{wxFrame::CreateStatusBar
}{wxframecreatestatusbar
},
\helpref{wxStatusBar
}{wxstatusbar
},
\rtfsp
544 \helpref{wxFrame::GetStatusBar
}{wxframegetstatusbar
}
546 \membersection{wxFrame::SetStatusBarPane
}\label{wxframesetstatusbarpane
}
548 \func{void
}{SetStatusBarPane
}{\param{int
}{ n
}}
550 Set the status bar pane used to display menu and toolbar help.
551 Using -
1 disables help display.
553 \membersection{wxFrame::SetStatusText
}\label{wxframesetstatustext
}
555 \func{virtual void
}{SetStatusText
}{\param{const wxString\&
}{ text
},
\param{int
}{ number =
0}}
557 Sets the status bar text and redraws the status bar.
559 \wxheading{Parameters
}
561 \docparam{text
}{The text for the status field.
}
563 \docparam{number
}{The status field (starting from zero).
}
567 Use an empty string to clear the status bar.
571 \helpref{wxFrame::CreateStatusBar
}{wxframecreatestatusbar
},
\helpref{wxStatusBar
}{wxstatusbar
}
573 \membersection{wxFrame::SetStatusWidths
}\label{wxframesetstatuswidths
}
575 \func{virtual void
}{SetStatusWidths
}{\param{int
}{ n
},
\param{int *
}{widths
}}
577 Sets the widths of the fields in the status bar.
579 \wxheading{Parameters
}
581 \wxheading{n
}{The number of fields in the status bar. It must be the
582 same used in
\helpref{CreateStatusBar
}{wxframecreatestatusbar
}.
}
584 \docparam{widths
}{Must contain an array of
{\it n
} integers, each of which is a status field width
585 in pixels. A value of -
1 indicates that the field is variable width; at least one
586 field must be -
1. You should delete this array after calling
{\bf SetStatusWidths
}.
}
590 The widths of the variable fields are calculated from the total width of all fields,
591 minus the sum of widths of the non-variable fields, divided by the number of
594 \pythonnote{Only a single parameter is required, a Python list of
597 \perlnote{In wxPerl this method takes the field widths as parameters.
}
599 \membersection{wxFrame::SetToolBar
}\label{wxframesettoolbar
}
601 \func{void
}{SetToolBar
}{\param{wxToolBar*
}{ toolBar
}}
603 Associates a toolbar with the frame.
607 \helpref{wxFrame::CreateToolBar
}{wxframecreatetoolbar
},
\helpref{wxToolBar
}{wxtoolbar
},
\rtfsp
608 \helpref{wxFrame::GetToolBar
}{wxframegettoolbar
}
610 \membersection{wxFrame::SetTitle
}\label{wxframesettitle
}
612 \func{virtual void
}{SetTitle
}{\param{const wxString\&
}{ title
}}
614 Sets the frame title.
616 \wxheading{Parameters
}
618 \docparam{title
}{The frame title.
}
622 \helpref{wxFrame::GetTitle
}{wxframegettitle
}
624 \membersection{wxFrame::ShowFullScreen
}\label{wxframeshowfullscreen
}
626 \func{bool
}{ShowFullScreen
}{\param{bool
}{ show
},
\param{long
}{ style = wxFULLSCREEN
\_ALL}}
628 Depending on the value of
{\it show
} parameter the frame is either shown full
629 screen or restored to its normal state.
{\it style
} is a bit list containing
630 some or all of the following values, which indicate what elements of the frame
631 to hide in full-screen mode:
633 \begin{itemize
}\itemsep=
0pt
634 \item wxFULLSCREEN
\_NOMENUBAR
635 \item wxFULLSCREEN
\_NOTOOLBAR
636 \item wxFULLSCREEN
\_NOSTATUSBAR
637 \item wxFULLSCREEN
\_NOBORDER
638 \item wxFULLSCREEN
\_NOCAPTION
639 \item wxFULLSCREEN
\_ALL (all of the above)
642 This function has not been tested with MDI frames.
644 Note that showing a frame full screen also actually
645 \helpref{Show()s
}{wxwindowshow
} if it hadn't been shown yet.
649 \helpref{wxFrame::IsFullScreen
}{wxframeisfullscreen
}