]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/frame.tex
Commited John Labenski's patch giving access to the low level selection
[wxWidgets.git] / docs / latex / wx / frame.tex
... / ...
CommitLineData
1\section{\class{wxFrame}}\label{wxframe}
2
3A frame is a window whose size and position can (usually) be changed by the
4user. It usually has thick borders and a title bar, and can optionally contain
5a menu bar, toolbar and status bar. A frame can contain any window that is not
6a frame or dialog.
7
8A frame that has a status bar and toolbar created via the
9CreateStatusBar/CreateToolBar functions manages these windows, and adjusts the
10value returned by GetClientSize to reflect the remaining size available to
11application windows.
12
13\wxheading{Derived from}
14
15\helpref{wxWindow}{wxwindow}\\
16\helpref{wxEvtHandler}{wxevthandler}\\
17\helpref{wxObject}{wxobject}
18
19\wxheading{Include files}
20
21<wx/frame.h>
22
23\wxheading{Window styles}
24
25\twocolwidtha{5cm}
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}.}
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{wxSTAY\_ON\_TOP}}{Stay on top of all other windows,
35see also wxFRAME\_FLOAT\_ON\_PARENT. Windows only.}
36\twocolitem{\windowstyle{wxSYSTEM\_MENU}}{Displays a system menu.}
37\twocolitem{\windowstyle{wxSIMPLE\_BORDER}}{Displays no border or decorations. GTK and Windows only.}
38\twocolitem{\windowstyle{wxRESIZE\_BORDER}}{Displays a resizeable border around the window.}
39\twocolitem{\windowstyle{wxFRAME\_TOOL\_WINDOW}}{Causes a frame with a small
40titlebar to be created; the frame does not appear in the taskbar under Windows.}
41\twocolitem{\windowstyle{wxFRAME\_NO\_TASKBAR}}{Creates an otherwise normal
42frame but it does not appear in the taskbar under Windows (note that it will
43minimize to the desktop window which may seem strange to the users and thus it
44might be better to use this style only without wxMINIMIZE\_BOX style).
45Has no effect under other platforms.}
46\twocolitem{\windowstyle{wxFRAME\_FLOAT\_ON\_PARENT}}{The frame will always be
47on top of its parent (unlike wxSTAY\_ON\_TOP). A frame created with this style
48must have a non-NULL parent.}
49\twocolitem{\windowstyle{wxFRAME\_EX\_CONTEXTHELP}}{Under Windows, puts a query button on the
50caption. When pressed, Windows will go into a context-sensitive help mode and wxWindows will send
51a wxEVT\_HELP event if the user clicked on an application window. {\it Note} that this is an extended
52style and must be set by calling \helpref{SetExtraStyle}{wxwindowsetextrastyle} before Create is called (two-step construction).
53You cannot use this style together with wxMAXIMIZE\_BOX or wxMINIMIZE\_BOX, so
54you should use
55{\tt wxDEFAULT\_FRAME\_STYLE \& \~ (wxMINIMIZE\_BOX | wxMAXIMIZE\_BOX)} for the
56frames having this style (the dialogs don't have minimize nor maximize box by
57default)}
58\end{twocollist}
59
60The default frame style is for normal, resizeable frames. To create a frame
61which can not be resized by user, you may use the following combination of
62styles: {\tt wxDEFAULT\_FRAME\_STYLE \& \~ (wxRESIZE\_BORDER \pipe wxRESIZE\_BOX \pipe wxMAXIMIZE\_BOX)}.
63% Note: the space after the tilde is necessary or Tex2RTF complains.
64
65See also \helpref{window styles overview}{windowstyles}.
66
67\wxheading{Remarks}
68
69An application should normally define an \helpref{wxCloseEvent}{wxcloseevent} handler for the
70frame to respond to system close events, for example so that related data and subwindows can be cleaned up.
71
72\wxheading{See also}
73
74\helpref{wxMDIParentFrame}{wxmdiparentframe}, \helpref{wxMDIChildFrame}{wxmdichildframe},\rtfsp
75\helpref{wxMiniFrame}{wxminiframe}, \helpref{wxDialog}{wxdialog}
76
77\latexignore{\rtfignore{\wxheading{Members}}}
78
79\membersection{wxFrame::wxFrame}\label{wxframeconstr}
80
81\func{}{wxFrame}{\void}
82
83Default constructor.
84
85\func{}{wxFrame}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
86\param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},\rtfsp
87\param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = wxDEFAULT\_FRAME\_STYLE},\rtfsp
88\param{const wxString\& }{name = ``frame"}}
89
90Constructor, creating the window.
91
92\wxheading{Parameters}
93
94\docparam{parent}{The window parent. This may be NULL. If it is non-NULL, the frame will
95always be displayed on top of the parent window on Windows.}
96
97\docparam{id}{The window identifier. It may take a value of -1 to indicate a default value.}
98
99\docparam{title}{The caption to be displayed on the frame's title bar.}
100
101\docparam{pos}{The window position. A value of (-1, -1) indicates a default position, chosen by
102either the windowing system or wxWindows, depending on platform.}
103
104\docparam{size}{The window size. A value of (-1, -1) indicates a default size, chosen by
105either the windowing system or wxWindows, depending on platform.}
106
107\docparam{style}{The window style. See \helpref{wxFrame}{wxframe}.}
108
109\docparam{name}{The name of the window. This parameter is used to associate a name with the item,
110allowing the application user to set Motif resource values for
111individual windows.}
112
113\wxheading{Remarks}
114
115For Motif, MWM (the Motif Window Manager) should be running for any window styles to work
116(otherwise all styles take effect).
117
118\wxheading{See also}
119
120\helpref{wxFrame::Create}{wxframecreate}
121
122\membersection{wxFrame::\destruct{wxFrame}}
123
124\func{void}{\destruct{wxFrame}}{\void}
125
126Destructor. Destroys all child windows and menu bar if present.
127
128\membersection{wxFrame::Centre}\label{wxframecentre}
129
130\func{void}{Centre}{\param{int}{ direction = wxBOTH}}
131
132Centres the frame on the display.
133
134\wxheading{Parameters}
135
136\docparam{direction}{The parameter may be {\tt wxHORIZONTAL}, {\tt wxVERTICAL} or {\tt wxBOTH}.}
137
138\membersection{wxFrame::Command}\label{wxframecommand}
139
140\func{void}{Command}{\param{int }{id}}
141
142Simulate a menu command.
143
144\wxheading{Parameters}
145
146\docparam{id}{The identifier for a menu item.}
147
148\membersection{wxFrame::Create}\label{wxframecreate}
149
150\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
151\param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},\rtfsp
152\param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = wxDEFAULT\_FRAME\_STYLE},\rtfsp
153\param{const wxString\& }{name = ``frame"}}
154
155Used in two-step frame construction. See \helpref{wxFrame::wxFrame}{wxframeconstr}\rtfsp
156for further details.
157
158\membersection{wxFrame::CreateStatusBar}\label{wxframecreatestatusbar}
159
160\func{virtual wxStatusBar*}{CreateStatusBar}{\param{int}{ number = 1},
161 \param{long}{ style = 0},
162 \param{wxWindowID}{ id = -1}, \param{const wxString\&}{ name = "statusBar"}}
163
164Creates a status bar at the bottom of the frame.
165
166\wxheading{Parameters}
167
168\docparam{number}{The number of fields to create. Specify a
169value greater than 1 to create a multi-field status bar.}
170
171\docparam{style}{The status bar style. See \helpref{wxStatusBar}{wxstatusbar} for a list
172of valid styles.}
173
174\docparam{id}{The status bar window identifier. If -1, an identifier will be chosen by
175wxWindows.}
176
177\docparam{name}{The status bar window name.}
178
179\wxheading{Return value}
180
181A pointer to the the status bar if it was created successfully, NULL otherwise.
182
183\wxheading{Remarks}
184
185The width of the status bar is the whole width of the frame (adjusted automatically when
186resizing), and the height and text size are chosen by the host windowing system.
187
188By default, the status bar is an instance of wxStatusBar. To use a different class,
189override \helpref{wxFrame::OnCreateStatusBar}{wxframeoncreatestatusbar}.
190
191Note that you can put controls and other windows on the status bar if you wish.
192
193\wxheading{See also}
194
195\helpref{wxFrame::SetStatusText}{wxframesetstatustext},\rtfsp
196\helpref{wxFrame::OnCreateStatusBar}{wxframeoncreatestatusbar},\rtfsp
197\helpref{wxFrame::GetStatusBar}{wxframegetstatusbar}
198
199\membersection{wxFrame::CreateToolBar}\label{wxframecreatetoolbar}
200
201\func{virtual wxToolBar*}{CreateToolBar}{\param{long}{ style = wxNO\_BORDER \pipe wxTB\_HORIZONTAL},
202 \param{wxWindowID}{ id = -1}, \param{const wxString\&}{ name = "toolBar"}}
203
204Creates a toolbar at the top or left of the frame.
205
206\wxheading{Parameters}
207
208\docparam{style}{The toolbar style. See \helpref{wxToolBar}{wxtoolbar} for a list
209of valid styles.}
210
211\docparam{id}{The toolbar window identifier. If -1, an identifier will be chosen by
212wxWindows.}
213
214\docparam{name}{The toolbar window name.}
215
216\wxheading{Return value}
217
218A pointer to the the toolbar if it was created successfully, NULL otherwise.
219
220\wxheading{Remarks}
221
222By default, the toolbar is an instance of wxToolBar (which is defined to be
223a suitable toolbar class on each platform, such as wxToolBar95). To use a different class,
224override \helpref{wxFrame::OnCreateToolBar}{wxframeoncreatetoolbar}.
225
226When a toolbar has been created with this function, or made known to the frame
227with \helpref{wxFrame::SetToolBar}{wxframesettoolbar}, the frame will manage the toolbar
228position and adjust the return value from \helpref{wxWindow::GetClientSize}{wxwindowgetclientsize} to
229reflect the available space for application windows.
230
231\wxheading{See also}
232
233\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar},\rtfsp
234\helpref{wxFrame::OnCreateToolBar}{wxframeoncreatetoolbar},\rtfsp
235\helpref{wxFrame::SetToolBar}{wxframesettoolbar},\rtfsp
236\helpref{wxFrame::GetToolBar}{wxframegettoolbar}
237
238\membersection{wxFrame::GetClientAreaOrigin}\label{wxframegetclientareaorigin}
239
240\constfunc{wxPoint}{GetClientAreaOrigin}{\void}
241
242Returns the origin of the frame client area (in client coordinates). It may be
243different from (0, 0) if the frame has a toolbar.
244
245\membersection{wxFrame::GetMenuBar}\label{wxframegetmenubar}
246
247\constfunc{wxMenuBar*}{GetMenuBar}{\void}
248
249Returns a pointer to the menubar currently associated with the frame (if any).
250
251\wxheading{See also}
252
253\helpref{wxFrame::SetMenuBar}{wxframesetmenubar}, \helpref{wxMenuBar}{wxmenubar}, \helpref{wxMenu}{wxmenu}
254
255\membersection{wxFrame::GetStatusBar}\label{wxframegetstatusbar}
256
257\constfunc{wxStatusBar*}{GetStatusBar}{\void}
258
259Returns a pointer to the status bar currently associated with the frame (if any).
260
261\wxheading{See also}
262
263\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar}
264
265\membersection{wxFrame::GetStatusBarPane}\label{wxframegetstatusbarpane}
266
267\func{int}{GetStatusBarPane}{\void}
268
269Returns the status bar pane used to display menu and toolbar help.
270
271\wxheading{See also}
272
273\helpref{wxFrame::SetStatusBarPane}{wxframesetstatusbarpane}
274
275\membersection{wxFrame::GetTitle}\label{wxframegettitle}
276
277\constfunc{wxString}{GetTitle}{\void}
278
279Gets a string containing the frame title. See \helpref{wxFrame::SetTitle}{wxframesettitle}.
280
281\membersection{wxFrame::GetToolBar}\label{wxframegettoolbar}
282
283\constfunc{wxToolBar*}{GetToolBar}{\void}
284
285Returns a pointer to the toolbar currently associated with the frame (if any).
286
287\wxheading{See also}
288
289\helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}, \helpref{wxToolBar}{wxtoolbar},\rtfsp
290\helpref{wxFrame::SetToolBar}{wxframesettoolbar}
291
292\membersection{wxFrame::Iconize}\label{wxframeiconize}
293
294\func{void}{Iconize}{\param{bool}{ iconize}}
295
296Iconizes or restores the frame.
297
298\wxheading{Parameters}
299
300\docparam{iconize}{If TRUE, iconizes the frame; if FALSE, shows and restores it.}
301
302\wxheading{See also}
303
304\helpref{wxFrame::IsIconized}{wxframeisiconized}, \helpref{wxFrame::Maximize}{wxframemaximize}.
305
306\membersection{wxFrame::IsFullScreen}\label{wxframeisfullscreen}
307
308\func{bool}{IsFullScreen}{\void}
309
310Returns TRUE if the frame is in fullscreen mode.
311
312\wxheading{See also}
313
314\helpref{wxFrame::ShowFullScreen}{wxframeshowfullscreen}
315
316\membersection{wxFrame::IsIconized}\label{wxframeisiconized}
317
318\constfunc{bool}{IsIconized}{\void}
319
320Returns TRUE if the frame is iconized.
321
322\membersection{wxFrame::IsMaximized}\label{wxframeismaximized}
323
324\constfunc{bool}{IsMaximized}{\void}
325
326Returns TRUE if the frame is maximized.
327
328\membersection{wxFrame::Maximize}\label{wxframemaximize}
329
330\func{void}{Maximize}{\param{bool }{maximize}}
331
332Maximizes or restores the frame.
333
334\wxheading{Parameters}
335
336\docparam{maximize}{If TRUE, maximizes the frame, otherwise it restores it.}
337
338\wxheading{Remarks}
339
340This function only works under Windows.
341
342\wxheading{See also}
343
344\helpref{wxFrame::Iconize}{wxframeiconize}
345
346\membersection{wxFrame::OnActivate}
347
348\func{void}{OnActivate}{\param{wxActivateEvent\&}{ event}}
349
350Called when a window is activated or deactivated (MS Windows
351only). See also \helpref{wxActivateEvent}{wxactivateevent}.
352
353\membersection{wxFrame::OnCreateStatusBar}\label{wxframeoncreatestatusbar}
354
355\func{virtual wxStatusBar*}{OnCreateStatusBar}{\param{int }{number},
356 \param{long}{ style},
357 \param{wxWindowID}{ id}, \param{const wxString\&}{ name}}
358
359Virtual function called when a status bar is requested by \helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}.
360
361\wxheading{Parameters}
362
363\docparam{number}{The number of fields to create.}
364
365\docparam{style}{The window style. See \helpref{wxStatusBar}{wxstatusbar} for a list
366of valid styles.}
367
368\docparam{id}{The window identifier. If -1, an identifier will be chosen by
369wxWindows.}
370
371\docparam{name}{The window name.}
372
373\wxheading{Return value}
374
375A status bar object.
376
377\wxheading{Remarks}
378
379An application can override this function to return a different kind of status bar. The default
380implementation returns an instance of \helpref{wxStatusBar}{wxstatusbar}.
381
382\wxheading{See also}
383
384\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar}.
385
386\membersection{wxFrame::OnCreateToolBar}\label{wxframeoncreatetoolbar}
387
388\func{virtual wxToolBar*}{OnCreateToolBar}{\param{long}{ style},
389 \param{wxWindowID}{ id}, \param{const wxString\&}{ name}}
390
391Virtual function called when a toolbar is requested by \helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}.
392
393\wxheading{Parameters}
394
395\docparam{style}{The toolbar style. See \helpref{wxToolBar}{wxtoolbar} for a list
396of valid styles.}
397
398\docparam{id}{The toolbar window identifier. If -1, an identifier will be chosen by
399wxWindows.}
400
401\docparam{name}{The toolbar window name.}
402
403\wxheading{Return value}
404
405A toolbar object.
406
407\wxheading{Remarks}
408
409An application can override this function to return a different kind of toolbar. The default
410implementation returns an instance of \helpref{wxToolBar}{wxtoolbar}.
411
412\wxheading{See also}
413
414\helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}, \helpref{wxToolBar}{wxtoolbar}.
415
416\membersection{wxFrame::OnMenuHighlight}\label{wxframeonmenuhighlight}
417
418\func{void}{OnMenuHighlight}{\param{wxMenuEvent\&}{ event}}
419
420The default implementation displays an appropriate help string
421in the status bar, if there is one.
422
423See \helpref{wxMenuEvent}{wxmenuevent}.
424
425\membersection{wxFrame::OnSize}\label{wxframeonsize}
426
427\func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
428
429The default {\bf wxFrame::OnSize} implementation looks for a single subwindow,
430and if one is found, resizes it to fit
431inside the frame. Override this member if more complex behaviour
432is required (for example, if there are several subwindows).
433
434See \helpref{wxSizeEvent}{wxsizeevent}.
435
436\membersection{wxFrame::SendSizeEvent}\label{wxframesendsizeevent}
437
438\func{void}{SendSizeEvent}{\void}
439
440This function sends a dummy \helpref{size event}{wxsizeevent} to the frame
441forcing it to reevaluate its children positions. It is sometimes useful to call
442this function after adding or deleting a children after the frame creation or
443if a child size changes.
444
445Note that if the frame is using either sizers or constraints for the children
446layout, it is enough to call \helpref{Layout()}{wxwindowlayout} directly and
447this function should not be used in this case.
448
449\membersection{wxFrame::SetIcon}\label{wxframeseticon}
450
451\func{void}{SetIcon}{\param{const wxIcon\& }{icon}}
452
453Sets the icon for this frame.
454
455\wxheading{Parameters}
456
457\docparam{icon}{The icon to associate with this frame.}
458
459\wxheading{Remarks}
460
461The frame takes a `copy' of {\it icon}, but since it uses reference
462counting, the copy is very quick. It is safe to delete {\it icon} after
463calling this function.
464
465See also \helpref{wxIcon}{wxicon}.
466
467\membersection{wxFrame::SetIcons}\label{wxframeseticons}
468
469\func{void}{SetIcons}{\param{const wxIconBundle\& }{icons}}
470
471Sets the icons for this frame.
472
473\wxheading{Parameters}
474
475\docparam{icons}{The icons to associate with this frame.}
476
477See also \helpref{wxIconBundle}{wxiconbundle}.
478
479% VZ: we don't have all this any more (18.08.00)
480%
481%Under Windows, instead of using {\bf SetIcon}, you can add the
482%following lines to your MS Windows resource file:
483%
484%\begin{verbatim}
485%wxSTD_MDIPARENTFRAME ICON icon1.ico
486%wxSTD_MDICHILDFRAME ICON icon2.ico
487%wxSTD_FRAME ICON icon3.ico
488%\end{verbatim}
489%
490%where icon1.ico will be used for the MDI parent frame, icon2.ico
491%will be used for MDI child frames, and icon3.ico will be used for
492%non-MDI frames.
493%
494%If these icons are not supplied, and {\bf SetIcon} is not called either,
495%then the following defaults apply if you have included wx.rc.
496%
497%\begin{verbatim}
498%wxDEFAULT_FRAME ICON std.ico
499%wxDEFAULT_MDIPARENTFRAME ICON mdi.ico
500%wxDEFAULT_MDICHILDFRAME ICON child.ico
501%\end{verbatim}
502%
503%You can replace std.ico, mdi.ico and child.ico with your own defaults
504%for all your wxWindows application. Currently they show the same icon.
505
506\membersection{wxFrame::SetMenuBar}\label{wxframesetmenubar}
507
508\func{void}{SetMenuBar}{\param{wxMenuBar* }{menuBar}}
509
510Tells the frame to show the given menu bar.
511
512\wxheading{Parameters}
513
514\docparam{menuBar}{The menu bar to associate with the frame.}
515
516\wxheading{Remarks}
517
518If the frame is destroyed, the
519menu bar and its menus will be destroyed also, so do not delete the menu
520bar explicitly (except by resetting the frame's menu bar to another
521frame or NULL).
522
523Under Windows, a call to \helpref{wxFrame::OnSize}{wxframeonsize} is generated, so be sure to initialize
524data members properly before calling {\bf SetMenuBar}.
525
526Note that it is not possible to call this function twice for the same frame object.
527
528\wxheading{See also}
529
530\helpref{wxFrame::GetMenuBar}{wxframegetmenubar}, \helpref{wxMenuBar}{wxmenubar}, \helpref{wxMenu}{wxmenu}.
531
532\membersection{wxFrame::SetStatusBar}\label{wxframesetstatusbar}
533
534\func{void}{SetStatusBar}{\param{wxStatusBar*}{ statusBar}}
535
536Associates a status bar with the frame.
537
538\wxheading{See also}
539
540\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar},\rtfsp
541\helpref{wxFrame::GetStatusBar}{wxframegetstatusbar}
542
543\membersection{wxFrame::SetStatusBarPane}\label{wxframesetstatusbarpane}
544
545\func{void}{SetStatusBarPane}{\param{int}{ n}}
546
547Set the status bar pane used to display menu and toolbar help.
548Using -1 disables help display.
549
550\membersection{wxFrame::SetStatusText}\label{wxframesetstatustext}
551
552\func{virtual void}{SetStatusText}{\param{const wxString\& }{ text}, \param{int}{ number = 0}}
553
554Sets the status bar text and redraws the status bar.
555
556\wxheading{Parameters}
557
558\docparam{text}{The text for the status field.}
559
560\docparam{number}{The status field (starting from zero).}
561
562\wxheading{Remarks}
563
564Use an empty string to clear the status bar.
565
566\wxheading{See also}
567
568\helpref{wxFrame::CreateStatusBar}{wxframecreatestatusbar}, \helpref{wxStatusBar}{wxstatusbar}
569
570\membersection{wxFrame::SetStatusWidths}\label{wxframesetstatuswidths}
571
572\func{virtual void}{SetStatusWidths}{\param{int}{ n}, \param{int *}{widths}}
573
574Sets the widths of the fields in the status bar.
575
576\wxheading{Parameters}
577
578\wxheading{n}{The number of fields in the status bar. It must be the
579same used in \helpref{CreateStatusBar}{wxframecreatestatusbar}.}
580
581\docparam{widths}{Must contain an array of {\it n} integers, each of which is a status field width
582in pixels. A value of -1 indicates that the field is variable width; at least one
583field must be -1. You should delete this array after calling {\bf SetStatusWidths}.}
584
585\wxheading{Remarks}
586
587The widths of the variable fields are calculated from the total width of all fields,
588minus the sum of widths of the non-variable fields, divided by the number of
589variable fields.
590
591\pythonnote{Only a single parameter is required, a Python list of
592integers.}
593
594\perlnote{In wxPerl this method takes the field widths as parameters.}
595
596\membersection{wxFrame::SetToolBar}\label{wxframesettoolbar}
597
598\func{void}{SetToolBar}{\param{wxToolBar*}{ toolBar}}
599
600Associates a toolbar with the frame.
601
602\wxheading{See also}
603
604\helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}, \helpref{wxToolBar}{wxtoolbar},\rtfsp
605\helpref{wxFrame::GetToolBar}{wxframegettoolbar}
606
607\membersection{wxFrame::SetTitle}\label{wxframesettitle}
608
609\func{virtual void}{SetTitle}{\param{const wxString\& }{ title}}
610
611Sets the frame title.
612
613\wxheading{Parameters}
614
615\docparam{title}{The frame title.}
616
617\wxheading{See also}
618
619\helpref{wxFrame::GetTitle}{wxframegettitle}
620
621\membersection{wxFrame::ShowFullScreen}\label{wxframeshowfullscreen}
622
623\func{bool}{ShowFullScreen}{\param{bool}{ show}, \param{long}{ style = wxFULLSCREEN\_ALL}}
624
625Passing TRUE to {\it shows} shows the frame full-screen, and passing FALSE restores the frame
626again. {\it style} is a bit list containing some or all of the following values, which
627indicate what elements of the frame to hide in full-screen mode:
628
629\begin{itemize}\itemsep=0pt
630\item wxFULLSCREEN\_NOMENUBAR
631\item wxFULLSCREEN\_NOTOOLBAR
632\item wxFULLSCREEN\_NOSTATUSBAR
633\item wxFULLSCREEN\_NOBORDER
634\item wxFULLSCREEN\_NOCAPTION
635\item wxFULLSCREEN\_ALL (all of the above)
636\end{itemize}
637
638This function has not been tested with MDI frames.
639
640\wxheading{See also}
641
642\helpref{wxFrame::IsFullScreen}{wxframeisfullscreen}
643