]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/window.tex
Various documentation changes, makefile fixes
[wxWidgets.git] / docs / latex / wx / window.tex
1 \section{\class{wxWindow}}\label{wxwindow}
2
3 wxWindow is the base class for all windows. Any
4 children of the window will be deleted automatically by the destructor
5 before the window itself is deleted.
6
7 \wxheading{Derived from}
8
9 \helpref{wxEvtHandler}{wxevthandler}\\
10 \helpref{wxObject}{wxobject}
11
12 \wxheading{Window styles}
13
14 The following styles can apply to all windows, although they will not always make sense for a particular
15 window class.
16
17 \twocolwidtha{5cm}%
18 \begin{twocollist}\itemsep=0pt
19 \twocolitem{\windowstyle{wxSIMPLE\_BORDER}}{Displays a thin border around the window. wxBORDER is the old name
20 for this style.}
21 \twocolitem{\windowstyle{wxDOUBLE\_BORDER}}{Displays a double border. Windows only.}
22 \twocolitem{\windowstyle{wxSUNKEN\_BORDER}}{Displays a sunken border.}
23 \twocolitem{\windowstyle{wxRAISED\_BORDER}}{Displays a sunken border.}
24 \twocolitem{\windowstyle{wxSTATIC\_BORDER}}{Displays a border suitable for a static control.}
25 \twocolitem{\windowstyle{wxTRANSPARENT\_WINDOW}}{The window is transparent, that is, it will not receive paint
26 events. Windows only.}
27 \twocolitem{\windowstyle{wxNO\_3D}}{Prevents the children of this window taking on 3D styles, even though
28 the application-wide policy is for 3D controls. Windows only.}
29 \twocolitem{\windowstyle{wxTAB\_TRAVERSAL}}{Use this to enable tab traversal for non-dialog windows.}
30 \twocolitem{\windowstyle{wxVSCROLL}}{Use this style to enable a vertical scrollbar.}
31 \twocolitem{\windowstyle{wxHSCROLL}}{Use this style to enable a horizontal scrollbar.}
32 \twocolitem{\windowstyle{wxCLIP\_CHILDREN}}{Use this style to eliminate flicker caused by the background being
33 repainted, then children being painted over them. Windows-only.}
34 \end{twocollist}
35
36 See also \helpref{window styles overview}{windowstyles}.
37
38 \wxheading{See also}
39
40 \helpref{Event handling overview}{eventhandlingoverview}
41
42 \latexignore{\rtfignore{\wxheading{Members}}}
43
44 \membersection{wxWindow::wxWindow}
45
46 \func{}{wxWindow}{\void}
47
48 Default constructor.
49
50 \func{}{wxWindow}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id},
51 \param{const wxPoint\& }{pos = wxDefaultPosition},
52 \param{const wxSize\& }{size = wxDefaultSize},
53 \param{long }{style = 0},
54 \param{const wxString\& }{name = wxPanelNameStr}}
55
56 Constructs a window, which can be a child of a frame, dialog or any other non-control window.
57
58 \wxheading{Parameters}
59
60 \docparam{parent}{Pointer to a parent window.}
61
62 \docparam{id}{Window identifier. If -1, will automatically create an identifier.}
63
64 \docparam{pos}{Window position. wxDefaultPosition is (-1, -1) which indicates that wxWindows
65 should generate a default position for the window. If using the wxWindow class directly, supply
66 an actual position.}
67
68 \docparam{size}{Window size. wxDefaultSize is (-1, -1) which indicates that wxWindows
69 should generate a default size for the window.}
70
71 \docparam{style}{Window style. For generic window styles, please see \helpref{wxWindow}{wxwindow}.}
72
73 \docparam{name}{Window name.}
74
75 \membersection{wxWindow::\destruct{wxWindow}}
76
77 \func{}{\destruct{wxWindow}}{\void}
78
79 Destructor. Deletes all subwindows, then deletes itself. Instead of using
80 the {\bf delete} operator explicitly, you should normally
81 use \helpref{wxWindow::Destroy}{wxwindowdestroy} so that wxWindows
82 can delete a window only when it is safe to do so, in idle time.
83
84 \wxheading{See also}
85
86 \helpref{Window deletion overview}{windowdeletionoverview},\rtfsp
87 \helpref{wxWindow::OnCloseWindow}{wxwindowonclosewindow},\rtfsp
88 \helpref{wxWindow::Destroy}{wxwindowdestroy},\rtfsp
89 \helpref{wxCloseEvent}{wxcloseevent}
90
91 \membersection{wxWindow::AddChild}
92
93 \func{virtual void}{AddChild}{\param{wxWindow* }{child}}
94
95 Adds a child window. This is called automatically by window creation
96 functions so should not be required by the application programmer.
97
98 \wxheading{Parameters}
99
100 \docparam{child}{Child window to add.}
101
102 \membersection{wxWindow::CaptureMouse}\label{wxwindowcapturemouse}
103
104 \func{virtual void}{CaptureMouse}{\void}
105
106 Directs all mouse input to this window. Call \helpref{wxWindow::ReleaseMouse}{wxwindowreleasemouse} to
107 release the capture.
108
109 \wxheading{See also}
110
111 \helpref{wxWindow::ReleaseMouse}{wxwindowreleasemouse}
112
113 \membersection{wxWindow::Center}\label{wxwindowcenter}
114
115 \func{void}{Center}{\param{int}{ direction}}
116
117 A synonym for \helpref{Centre}{wxwindowcentre}.
118
119 \membersection{wxWindow::Centre}\label{wxwindowcentre}
120
121 \func{virtual void}{Centre}{\param{int}{ direction = wxHORIZONTAL}}
122
123 Centres the window.
124
125 \wxheading{Parameters}
126
127 \docparam{direction}{Specifies the direction for the centering. May be {\tt wxHORIZONTAL}, {\tt wxVERTICAL}\rtfsp
128 or {\tt wxBOTH}.}
129
130 \wxheading{Remarks}
131
132 The actual behaviour depends on the derived window. For a frame or dialog box,
133 centring is relative to the whole display. For a panel item, centring is
134 relative to the panel.
135
136 \wxheading{See also}
137
138 \helpref{wxWindow::Center}{wxwindowcenter}
139
140 \membersection{wxWindow::Clear}\label{wxwindowclear}
141
142 \func{void}{Clear}{\void}
143
144 Clears the window by filling it with the current background colour.
145
146 \membersection{wxWindow::ClientToScreen}
147
148 \constfunc{virtual void}{ClientToScreen}{\param{int* }{x}, \param{int* }{y}}
149
150 Converts to screen coordinates from coordinates relative to this window.
151
152 \docparam{x}{A pointer to a integer value for the x coordinate. Pass the client coordinate in, and
153 a screen coordinate will be passed out.}
154
155 \docparam{y}{A pointer to a integer value for the y coordinate. Pass the client coordinate in, and
156 a screen coordinate will be passed out.}
157
158 \membersection{wxWindow::Close}\label{wxwindowclose}
159
160 \func{virtual bool}{Close}{\param{const bool}{ force = FALSE}}
161
162 The purpose of this call is to provide a safer way of destroying a window than using
163 the {\it delete} operator.
164
165 \wxheading{Parameters}
166
167 \docparam{force}{FALSE if the window's close handler should be able to veto the destruction
168 of this window, TRUE if it cannot.}
169
170 \wxheading{Remarks}
171
172 Close calls the \helpref{close handler}{wxcloseevent} for the window, providing an opportunity for the window to
173 choose whether to destroy the window.
174
175 The close handler should check whether the window is being deleted forcibly,
176 using \helpref{wxCloseEvent::GetForce}{wxcloseeventgetforce}, in which case it should
177 destroy the window using \helpref{wxWindow::Destroy}{wxwindowdestroy}.
178
179 Applies to managed windows (wxFrame and wxDialog classes) only.
180
181 \wxheading{See also}
182
183 \helpref{Window deletion overview}{windowdeletionoverview},\rtfsp
184 \helpref{wxWindow::OnCloseWindow}{wxwindowonclosewindow},\rtfsp
185 \helpref{wxWindow::Destroy}{wxwindowdestroy},\rtfsp
186 \helpref{wxCloseEvent}{wxcloseevent}
187
188 \membersection{wxWindow::Destroy}\label{wxwindowdestroy}
189
190 \func{virtual bool}{Destroy}{\void}
191
192 Destroys the window safely. Use this function instead of the delete operator, since
193 different window classes can be destroyed differently. Frames and dialogs
194 are not destroyed immediately when this function is called - they are added
195 to a list of windows to be deleted on idle time, when all the window's events
196 have been processed. This prevents problems with events being sent to non-existant
197 windows.
198
199 \wxheading{Return value}
200
201 TRUE if the window has either been successfully deleted, or it has been added
202 to the list of windows pending real deletion.
203
204 \membersection{wxWindow::DestroyChildren}
205
206 \func{virtual void}{DestroyChildren}{\void}
207
208 Destroys all children of a window. Called automatically by the destructor.
209
210 \membersection{wxWindow::DragAcceptFiles}\label{wxwindowdragacceptfiles}
211
212 \func{virtual void}{DragAcceptFiles}{\param{const bool}{ accept}}
213
214 Enables or disables elibility for drop file events (OnDropFiles).
215
216 \wxheading{Parameters}
217
218 \docparam{accept}{If TRUE, the window is eligible for drop file events. If FALSE, the window
219 will not accept drop file events.}
220
221 \wxheading{Remarks}
222
223 Windows only.
224
225 \wxheading{See also}
226
227 \helpref{wxWindow::OnDropFiles}{wxwindowondropfiles}
228
229 \membersection{wxWindow::Enable}\label{wxwindowenable}
230
231 \func{virtual void}{Enable}{\param{const bool}{ enable}}
232
233 Enable or disable the window for user input.
234
235 \wxheading{Parameters}
236
237 \docparam{enable}{If TRUE, enables the window for input. If FALSE, disables the window.}
238
239 \wxheading{See also}
240
241 \helpref{wxWindow::IsEnabled}{wxwindowisenabled}
242
243 \membersection{wxWindow::FakePopupMenu}\label{wxwindowfakepopupmenu}
244
245 \func{virtual bool}{FakePopupMenu}{\param{wxMenu* }{menu}, \param{int }{x}, \param{int }{y}}
246
247 A replacement for wxWindow::PopupMenu for cases where the PopupMenu implementation
248 does not work correctly, in particular on Motif platforms.
249
250 \wxheading{Parameters}
251
252 \docparam{menu}{Menu to pop up.}
253
254 \docparam{x}{Required x position for the menu to appear.}
255
256 \docparam{y}{Required y position for the menu to appear.}
257
258 \wxheading{Remarks}
259
260 This is a cut-down version of PopupMenu using a dialog and listbox; pull-right menus
261 are not supported.
262
263 \wxheading{See also}
264
265 \helpref{wxMenu}{wxmenu}, \helpref{wxWindow::PopupMenu}{wxwindowpopupmenu}
266
267 \membersection{wxWindow::FindFocus}\label{wxwindowfindfocus}
268
269 \func{static wxWindow*}{FindFocus}{\void}
270
271 Finds the window or control which currently has the keyboard focus.
272
273 \wxheading{Remarks}
274
275 Note that this is a static function, so it can be called without needing a wxWindow pointer.
276
277 \wxheading{See also}
278
279 \helpref{wxWindow::SetFocus}{wxwindowsetfocus}
280
281 \membersection{wxWindow::Fit}\label{wxwindowfit}
282
283 \func{virtual void}{Fit}{\void}
284
285 Sizes the window so that it fits around its subwindows.
286
287 \membersection{wxWindow::GetBackgroundColour}\label{wxwindowgetbackgroundcolour}
288
289 \constfunc{virtual wxColour}{GetBackgroundColour}{\void}
290
291 Returns the background colour of the window.
292
293 \wxheading{See also}
294
295 \helpref{wxWindow::SetBackgroundColour}{wxwindowsetbackgroundcolour},\rtfsp
296 \helpref{wxWindow::SetForegroundColour}{wxwindowsetforegroundcolour},\rtfsp
297 \helpref{wxWindow::GetForegroundColour}{wxwindowgetforegroundcolour},\rtfsp
298 \helpref{wxWindow::OnEraseBackground}{wxwindowonerasebackground}
299
300 \membersection{wxWindow::GetCharHeight}
301
302 \constfunc{virtual int}{GetCharHeight}{\void}
303
304 Returns the character height for this window.
305
306 \membersection{wxWindow::GetCharWidth}
307
308 \constfunc{virtual int}{GetCharWidth}{\void}
309
310 Returns the average character width for this window.
311
312 \membersection{wxWindow::GetChildren}
313
314 \func{wxList*}{GetChildren}{\void}
315
316 Returns a pointer to the list of the window's children.
317
318 \membersection{wxWindow::GetClientSize}\label{wxwindowgetclientsize}
319
320 \constfunc{virtual void}{GetClientSize}{\param{int* }{width}, \param{int* }{height}}
321
322 This gets the size of the window `client area' in pixels. The client area is the
323 area which may be drawn on by the programmer, excluding title bar, border etc.
324
325 \wxheading{Parameters}
326
327 \docparam{width}{Receives the client width in pixels.}
328
329 \docparam{height}{Receives the client height in pixels.}
330
331 \membersection{wxWindow::GetConstraints}\label{wxwindowgetconstraints}
332
333 \constfunc{wxLayoutConstraints*}{GetConstraints}{\void}
334
335 Returns a pointer to the window's layout constraints, or NULL if there are none.
336
337 \membersection{wxWindow::GetDefaultItem}\label{wxwindowgetdefaultitem}
338
339 \constfunc{wxButton*}{GetDefaultItem}{\void}
340
341 Returns a pointer to the button which is the default for this window, or NULL.
342
343 \membersection{wxWindow::GetEventHandler}\label{wxwindowgeteventhandler}
344
345 \constfunc{wxEvtHandler*}{GetEventHandler}{\void}
346
347 Returns the event handler for this window. By default, the window is its
348 own event handler.
349
350 \wxheading{See also}
351
352 \helpref{wxWindow::SetEventHandler}{wxwindowseteventhandler},\rtfsp
353 \helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler},\rtfsp
354 \helpref{wxWindow::PopEventHandler}{wxwindowpusheventhandler},\rtfsp
355 \helpref{wxEvtHandler::ProcessEvent}{wxevthandlerprocessevent},\rtfsp
356 \helpref{wxEvtHandler}{wxevthandler}\rtfsp
357
358 \membersection{wxWindow::GetFont}\label{wxwindowgetfont}
359
360 \constfunc{wxFont*}{GetFont}{\void}
361
362 Returns a pointer to the font for this window.
363
364 \wxheading{See also}
365
366 \helpref{wxWindow::SetFont}{wxwindowsetfont}
367
368 \membersection{wxWindow::GetForegroundColour}\label{wxwindowgetforegroundcolour}
369
370 \func{virtual wxColour}{GetForegroundColour}{\void}
371
372 Returns the foreground colour of the window.
373
374 \wxheading{Remarks}
375
376 The interpretation of foreground colour is open to interpretation according
377 to the window class; it may be the text colour or other colour, or it may not
378 be used at all.
379
380 \wxheading{See also}
381
382 \helpref{wxWindow::SetForegroundColour}{wxwindowsetforegroundcolour},\rtfsp
383 \helpref{wxWindow::SetBackgroundColour}{wxwindowsetbackgroundcolour},\rtfsp
384 \helpref{wxWindow::GetBackgroundColour}{wxwindowgetbackgroundcolour}
385
386 \membersection{wxWindow::GetGrandParent}
387
388 \constfunc{wxWindow*}{GetGrandParent}{\void}
389
390 Returns the grandparent of a window, or NULL if there isn't one.
391
392 \membersection{wxWindow::GetHandle}
393
394 \constfunc{void*}{GetHandle}{\void}
395
396 Returns the platform-specific handle of the physical window. Cast it to an appropriate
397 handle, such as {\bf HWND} for Windows or {\bf Widget} for Motif.
398
399 \membersection{wxWindow::GetId}\label{wxwindowgetid}
400
401 \constfunc{int}{GetId}{\void}
402
403 Returns the identifier of the window.
404
405 \wxheading{Remarks}
406
407 Each window has an integer identifier. If the application has not provided one,
408 an identifier will be generated.
409
410 TODO: perhaps there should be a default identifier for each class, rather
411 choosing one, which could clash with other ones.
412
413 \wxheading{See also}
414
415 \helpref{wxWindow::SetId}{wxwindowsetid}
416
417 \membersection{wxWindow::GetPosition}
418
419 \constfunc{virtual void}{GetPosition}{\param{int* }{x}, \param{int* }{y}}
420
421 This gets the position of the window in pixels, relative to the parent window or
422 if no parent, relative to the whole display.
423
424 \wxheading{Parameters}
425
426 \docparam{x}{Receives the x position of the window.}
427
428 \docparam{y}{Receives the y position of the window.}
429
430 \membersection{wxWindow::GetLabel}
431
432 \constfunc{virtual wxString\& }{GetLabel}{\void}
433
434 Generic way of getting a label from any window, for
435 identification purposes.
436
437 \wxheading{Remarks}
438
439 The interpretation of this function differs from class to class.
440 For frames and dialogs, the value returned is the title. For buttons or static text controls, it is
441 the button text. This function can be useful for meta-programs (such as testing
442 tools or special-needs access programs) which need to identify windows
443 by name.
444
445 \membersection{wxWindow::GetName}\label{wxwindowgetname}
446
447 \constfunc{virtual wxString\& }{GetName}{\void}
448
449 Returns the window's name.
450
451 \wxheading{Remarks}
452
453 This name is not guaranteed to be unique; it is up to the programmer to supply an appropriate
454 name in the window constructor or via \helpref{wxWindow::SetName}{wxwindowsetname}.
455
456 \wxheading{See also}
457
458 \helpref{wxWindow::SetName}{wxwindowsetname}
459
460 \membersection{wxWindow::GetParent}
461
462 \constfunc{virtual wxWindow*}{GetParent}{\void}
463
464 Returns the parent of the window, or NULL if there is no parent.
465
466 \membersection{wxWindow::GetReturnCode}\label{wxwindowgetreturncode}
467
468 \func{int}{GetReturnCode}{\void}
469
470 Gets the return code for this window.
471
472 \wxheading{Remarks}
473
474 A return code is normally associated with a modal dialog, where \helpref{wxDialog::ShowModal}{wxdialogshowmodal} returns
475 a code to the application.
476
477 \wxheading{See also}
478
479 \helpref{wxWindow::SetReturnCode}{wxwindowsetreturncode}, \helpref{wxDialog::ShowModal}{wxdialogshowmodal},\rtfsp
480 \helpref{wxDialog::EndModal}{wxdialogendmodal}
481
482 \membersection{wxWindow::GetScrollThumb}\label{wxwindowgetscrollthumb}
483
484 \func{virtual int}{GetScrollThumb}{\param{int }{orientation}}
485
486 Returns the built-in scrollbar thumb size.
487
488 \wxheading{See also}
489
490 \helpref{wxWindow::SetScrollbar}{wxwindowsetscrollbar}
491
492 \membersection{wxWindow::GetScrollPos}\label{wxwindowgetscrollpos}
493
494 \func{virtual int}{GetScrollPos}{\param{int }{orientation}}
495
496 Returns the built-in scrollbar position.
497
498 \wxheading{See also}
499
500 See \helpref{wxWindow::SetScrollbar}{wxwindowsetscrollbar}
501
502 \membersection{wxWindow::GetScrollRange}\label{wxwindowgetscrollrange}
503
504 \func{virtual int}{GetScrollRange}{\param{int }{orientation}}
505
506 Returns the built-in scrollbar range.
507
508 \wxheading{See also}
509
510 \helpref{wxWindow::SetScrollbar}{wxwindowsetscrollbar}
511
512 \membersection{wxWindow::GetSize}
513
514 \constfunc{virtual void}{GetSize}{\param{int* }{width}, \param{int* }{height}}
515
516 This gets the size of the entire window in pixels.
517
518 \wxheading{Parameters}
519
520 \docparam{width}{Receives the window width.}
521
522 \docparam{height}{Receives the window height.}
523
524 \membersection{wxWindow::GetTextExtent}
525
526 \constfunc{virtual void}{GetTextExtent}{\param{const wxString\& }{string}, \param{int* }{x}, \param{int* }{y},
527 \param{int* }{descent = NULL}, \param{int* }{externalLeading = NULL},
528 \param{const wxFont* }{font = NULL}, \param{const bool}{ use16 = FALSE}}
529
530 Gets the dimensions of the string as it would be drawn on the
531 window with the currently selected font.
532
533 \wxheading{Parameters}
534
535 \docparam{string}{String whose extent is to be measured.}
536
537 \docparam{x}{Return value for width.}
538
539 \docparam{y}{Return value for height.}
540
541 \docparam{descent}{Return value for descent (optional).}
542
543 \docparam{externalLeading}{Return value for external leading (optional).}
544
545 \docparam{font}{Font to use instead of the current window font (optional).}
546
547 \docparam{use16}{If TRUE, {\it string} contains 16-bit characters. The default is FALSE.}
548
549 \membersection{wxWindow::GetTitle}\label{wxwindowgettitle}
550
551 \func{virtual wxString}{GetTitle}{\void}
552
553 Gets the window's title. Applicable only to frames and dialogs.
554
555 \wxheading{See also}
556
557 \helpref{wxWindow::SetTitle}{wxwindowsettitle}
558
559 \membersection{wxWindow::GetWindowStyleFlag}
560
561 \constfunc{long}{GetWindowStyleFlag}{\void}
562
563 Gets the window style that was passed to the consructor or {\bf Create} member.
564
565 \membersection{wxWindow::InitDialog}\label{wxwindowinitdialog}
566
567 \func{void}{InitDialog}{\void}
568
569 Sends an \helpref{wxWindow::OnInitDialog}{wxwindowoninitdialog} event, which
570 in turn transfers data to the dialog via validators.
571
572 \wxheading{See also}
573
574 \helpref{wxWindow::OnInitDialog}{wxwindowoninitdialog}
575
576 \membersection{wxWindow::IsEnabled}\label{wxwindowisenabled}
577
578 \constfunc{virtual bool}{IsEnabled}{\void}
579
580 Returns TRUE if the window is enabled for input, FALSE otherwise.
581
582 \wxheading{See also}
583
584 \helpref{wxWindow::Enable}{wxwindowenable}
585
586 \membersection{wxWindow::IsRetained}\label{wxwindowisretained}
587
588 \constfunc{virtual bool}{IsRetained}{\void}
589
590 Returns TRUE if the window is retained, FALSE otherwise.
591
592 \wxheading{Remarks}
593
594 Retained windows are only available on X platforms.
595
596 \membersection{wxWindow::IsShown}\label{wxwindowisshown}
597
598 \constfunc{virtual bool}{IsShown}{\void}
599
600 Returns TRUE if the window is shown, FALSE if it has been hidden.
601
602 \membersection{wxWindow::Layout}\label{wxwindowlayout}
603
604 \func{void}{Layout}{\void}
605
606 Invokes the constraint-based layout algorithm for this window. It is called
607 automatically by the default {\bf wxWindow::OnSize} member.
608
609 \membersection{wxWindow::LoadFromResource}\label{wxwindowloadfromresource}
610
611 \func{virtual bool}{LoadFromResource}{\param{wxWindow* }{parent},\rtfsp
612 \param{const wxString\& }{resourceName}, \param{const wxResourceTable* }{resourceTable = NULL}}
613
614 Loads a panel or dialog from a resource file.
615
616 \wxheading{Parameters}
617
618 \docparam{parent}{Parent window.}
619
620 \docparam{resourceName}{The name of the resource to load.}
621
622 \docparam{resourceTable}{The resource table to load it from. If this is NULL, the
623 default resource table will be used.}
624
625 \wxheading{Return value}
626
627 TRUE if the operation succeeded, otherwise FALSE.
628
629 \wxheading{Remarks}
630
631 TODO
632
633 \wxheading{See also}
634
635 TODO
636
637 \membersection{wxWindow::Lower}\label{wxwindowlower}
638
639 \func{void}{Lower}{\void}
640
641 Lowers the window to the bottom of the window hierarchy if it is a managed window (dialog
642 or frame).
643
644 \membersection{wxWindow::MakeModal}\label{wxwindowmakemodal}
645
646 \func{virtual void}{MakeModal}{\param{const bool }{flag}}
647
648 Disables all other windows in the application so that
649 the user can only interact with this window.
650
651 \wxheading{Parameters}
652
653 \docparam{flag}{If TRUE, this call disables all other windows in the application so that
654 the user can only interact with this window. If FALSE, the effect is reversed.}
655
656 \membersection{wxWindow::Move}\label{wxwindowmove}
657
658 \func{void}{Move}{\param{int}{ x}, \param{int}{ y}}
659
660 Moves the window to the given position.
661
662 \wxheading{Parameters}
663
664 \docparam{x}{Required x position.}
665
666 \docparam{y}{Required y position.}
667
668 \wxheading{Remarks}
669
670 Implementations of SetSize can also implicitly implement the
671 wxWindow::Move function, which is defined in the base wxWindow class
672 as the call:
673
674 \begin{verbatim}
675 SetSize(x, y, -1, -1, wxSIZE_USE_EXISTING);
676 \end{verbatim}
677
678 \wxheading{See also}
679
680 \helpref{wxWindow::SetSize}{wxwindowsetsize}
681
682 \membersection{wxWindow::OnActivate}\label{wxwindowonactivate}
683
684 \func{void}{OnActivate}{\param{wxActivateEvent\&}{ event}}
685
686 Called when a window is activated or deactivated.
687
688 \wxheading{Parameters}
689
690 \docparam{event}{Object containing activation information.}
691
692 \wxheading{Remarks}
693
694 If the window is being activated, \helpref{wxActivateEvent::GetActive}{wxactivateeventgetactive} returns TRUE,
695 otherwise it returns FALSE (it is being deactivated).
696
697 \wxheading{See also}
698
699 \helpref{wxActivateEvent}{wxactivateevent},\rtfsp
700 \helpref{Event handling overview}{eventhandlingoverview}
701
702 \membersection{wxWindow::OnChar}\label{wxwindowonchar}
703
704 \func{void}{OnChar}{\param{wxKeyEvent\&}{ event}}
705
706 Called when the user has pressed a key.
707
708 \wxheading{Parameters}
709
710 \docparam{event}{Object containing keypress information. See \helpref{wxKeyEvent}{wxkeyevent} for
711 details about this class.}
712
713 \wxheading{Remarks}
714
715 This member function is called in response to a keypress. To intercept this event,
716 use the EVT\_CHAR macro in an event table definition. Your {\bf OnChar} handler may call this
717 default function to achieve default keypress functionality.
718
719 Note that the ASCII values do not have explicit key codes: they are passed as ASCII
720 values.
721
722 Most, but not all, windows allow keypresses to be intercepted.
723
724 \wxheading{See also}
725
726 \helpref{wxKeyEvent}{wxkeyevent}, \helpref{wxWindow::OnCharHook}{wxwindowoncharhook},\rtfsp
727 \helpref{Event handling overview}{eventhandlingoverview}
728
729 \membersection{wxWindow::OnCharHook}\label{wxwindowoncharhook}
730
731 \func{void}{OnCharHook}{\param{wxKeyEvent\&}{ event}}
732
733 This member is called to allow the window to intercept keyboard events
734 before they are processed by child windows.
735
736 \wxheading{Parameters}
737
738 \docparam{event}{Object containing keypress information. See \helpref{wxKeyEvent}{wxkeyevent} for
739 details about this class.}
740
741 \wxheading{Remarks}
742
743 This member function is called in response to a keypress, if the window is active. To intercept this event,
744 use the EVT\_CHAR\_HOOK macro in an event table definition. If you do not process a particular
745 keypress, call \helpref{wxEvent::Skip}{wxeventskip} to allow default processing.
746
747 An example of using this function is in the implementation of escape-character processing for wxDialog,
748 where pressing ESC dismisses the dialog by {\bf OnCharHook} 'forging' a cancel button press event.
749
750 Note that the ASCII values do not have explicit key codes: they are passed as ASCII
751 values.
752
753 This function is only relevant to top-level windows (frames and dialogs), and under
754 Windows only.
755
756 \wxheading{See also}
757
758 \helpref{wxKeyEvent}{wxkeyevent}, \helpref{wxWindow::OnCharHook}{wxwindowoncharhook},\rtfsp
759 \helpref{wxApp::OnCharHook}{wxapponcharhook},\rtfsp
760 \helpref{Event handling overview}{eventhandlingoverview}
761
762 \membersection{wxWindow::OnCommand}\label{wxwindowoncommand}
763
764 \func{virtual void}{OnCommand}{\param{wxEvtHandler\& }{object}, \param{wxCommandEvent\& }{event}}
765
766 This virtual member function is called if the control does not handle the command event.
767
768 \wxheading{Parameters}
769
770 \docparam{object}{Object receiving the command event.}
771
772 \docparam{event}{Command event}
773
774 \wxheading{Remarks}
775
776 This virtual function is provided mainly for backward compatibility. You can also intercept commands
777 from child controls by using an event table, with identifiers or identifier ranges to identify
778 the control(s) in question.
779
780 \wxheading{See also}
781
782 \helpref{wxCommandEvent}{wxcommandevent},\rtfsp
783 \helpref{Event handling overview}{eventhandlingoverview}
784
785 \membersection{wxWindow::OnClose}\label{wxwindowonclose}
786
787 \func{virtual bool}{OnClose}{\void}
788
789 Called when the user has tried to close a a frame
790 or dialog box using the window manager (X) or system menu (Windows).
791
792 {\bf Note:} This is an obsolete function retained for backward compatibility.
793 It is superceded by the \helpref{wxWindow::OnCloseWindow}{wxwindowonclosewindow} event
794 handler.
795
796 \wxheading{Return value}
797
798 If TRUE is returned by OnClose, the window will be deleted by the system, otherwise the
799 attempt will be ignored. Do not delete the window from within this handler, although
800 you may delete other windows.
801
802 \wxheading{Remarks}
803
804 Derive your own class to handle this message. The default handler returns FALSE.
805
806 \wxheading{See also}
807
808 \helpref{Window deletion overview}{windowdeletionoverview},\rtfsp
809 \helpref{wxWindow::Close}{wxwindowclose},\rtfsp
810 \helpref{wxWindow::OnCloseWindow}{wxwindowonclosewindow},\rtfsp
811 \helpref{wxCloseEvent}{wxcloseevent}
812
813 \membersection{wxWindow::OnCloseWindow}\label{wxwindowonclosewindow}
814
815 \func{void}{OnCloseWindow}{\param{wxCloseEvent\& }{event}}
816
817 This is an event handler function called when the user has tried to close a a frame
818 or dialog box using the window manager (X) or system menu (Windows). It is
819 called via the \helpref{wxWindow::Close}{wxwindowclose} function, so
820 that the application can also invoke the handler programmatically.
821
822 Use the EVT\_CLOSE event table macro to handle close events.
823
824 You should check whether the application is forcing the deletion of the window
825 using \helpref{wxCloseEvent::GetForce}{wxcloseeventgetforce}. If this is TRUE,
826 destroy the window using \helpref{wxWindow::Destroy}{wxwindowdestroy}.
827 If not, it is up to you whether you respond by destroying the window.
828
829 \wxheading{Remarks}
830
831 The \helpref{wxWindow::OnClose}{wxwindowonclose} virtual function remains
832 for backward compatibility with earlier versions of wxWindows. The
833 default {\bf OnCloseWindow} handler for wxFrame and wxDialog will call {\bf OnClose},
834 destroying the window if it returns TRUE or if the close is being forced.
835
836 \wxheading{See also}
837
838 \helpref{Window deletion overview}{windowdeletionoverview},\rtfsp
839 \helpref{wxWindow::Close}{wxwindowclose},\rtfsp
840 \helpref{wxWindow::OnClose}{wxwindowonclose},\rtfsp
841 \helpref{wxWindow::Destroy}{wxwindowdestroy},\rtfsp
842 \helpref{wxCloseEvent}{wxcloseevent}
843
844 \membersection{wxWindow::OnDefaultAction}\label{wxwindowondefaultaction}
845
846 \func{virtual void}{OnDefaultAction}{\param{wxControl* }{control}}
847
848 Called when the user initiates the default action for a panel or
849 dialog box, for example by double clicking on a listbox.
850
851 \wxheading{Parameters}
852
853 \docparam{control}{The control which caused the default action.}
854
855 \wxheading{Remarks}
856
857 TODO: eliminate this?? Or keep it for backward compatibility?
858
859 \membersection{wxWindow::OnDropFiles}\label{wxwindowondropfiles}
860
861 \func{void}{OnDropFiles}{\param{wxDropFilesEvent\&}{ event}}
862
863 Called when files have been dragged from the file manager to the window.
864
865 \wxheading{Parameters}
866
867 \docparam{event}{Drop files event. For more information, see \helpref{wxDropFilesEvent}{wxdropfilesevent}.}
868
869 \wxheading{Remarks}
870
871 The window must have previously been enabled for dropping by calling
872 \rtfsp\helpref{wxWindow::DragAcceptFiles}{wxwindowdragacceptfiles}.
873
874 This event is only generated under Windows.
875
876 To intercept this event, use the EVT\_DROP\_FILES macro in an event table definition.
877
878 \wxheading{See also}
879
880 \helpref{wxDropFilesEvent}{wxdropfilesevent}, \helpref{wxWindow::DragAcceptFiles}{wxwindowdragacceptfiles},\rtfsp
881 \helpref{Event handling overview}{eventhandlingoverview}
882
883 \membersection{wxWindow::OnEraseBackground}\label{wxwindowonerasebackground}
884
885 \func{void}{OnEraseBackground}{\param{wxEraseEvent\&}{ event}}
886
887 Called when the background of the window needs to be erased.
888
889 \wxheading{Parameters}
890
891 \docparam{event}{Erase background event. For more information, see \helpref{wxEraseEvent}{wxeraseevent}.}
892
893 \wxheading{Remarks}
894
895 This event is only generated under Windows.
896
897 To intercept this event, use the EVT\_ERASE\_BACKGROUND macro in an event table definition.
898
899 \wxheading{See also}
900
901 \helpref{wxEraseEvent}{wxeraseevent}, \helpref{Event handling overview}{eventhandlingoverview}
902
903 \membersection{wxWindow::OnKillFocus}\label{wxwindowonkillfocus}
904
905 \func{void}{OnKillFocus}{\param{wxFocusEvent\& }{event}}
906
907 Called when a window's focus is being killed.
908
909 \wxheading{Parameters}
910
911 \docparam{event}{The focus event. For more information, see \helpref{wxFocusEvent}{wxfocusevent}.}
912
913 \wxheading{Remarks}
914
915 To intercept this event, use the macro EVT\_KILL\_FOCUS in an event table definition.
916
917 Most, but not all, windows respond to this event.
918
919 \wxheading{See also}
920
921 \helpref{wxFocusEvent}{wxfocusevent}, \helpref{wxWindow::OnSetFocus}{wxwindowonsetfocus},\rtfsp
922 \helpref{Event handling overview}{eventhandlingoverview}
923
924 \membersection{wxWindow::OnIdle}\label{wxwindowonidle}
925
926 \func{void}{Onidle}{\param{wxIdleEvent\& }{event}}
927
928 Provide this member function for any processing which needs to be done
929 when the application is idle.
930
931 \wxheading{See also}
932
933 \helpref{wxApp::OnIdle}{wxapponidle}, \helpref{wxIdleEvent}{wxidleevent}
934
935 \membersection{wxWindow::OnInitDialog}\label{wxwindowoninitdialog}
936
937 \func{void}{OnInitDialog}{\param{wxInitDialogEvent\&}{ event}}
938
939 Default handler for the wxEVT\_INIT\_DIALOG event. Calls \helpref{wxWindow::TransferDataToWindow}{wxwindowtransferdatatowindow}.
940
941 \wxheading{Parameters}
942
943 \docparam{event}{Dialog initialisation event.}
944
945 \wxheading{Remarks}
946
947 Gives the window the default behaviour of transferring data to child controls via
948 the validator that each control has.
949
950 \wxheading{See also}
951
952 \helpref{wxValidator}{wxvalidator}, \helpref{wxWindow::TransferDataToWindow}{wxwindowtransferdatatowindow}
953
954 \membersection{wxWindow::OnMenuCommand}\label{wxwindowonmenucommand}
955
956 \func{void}{OnMenuCommand}{\param{wxCommandEvent\& }{event}}
957
958 Called when a menu command is received from a menu bar.
959
960 \wxheading{Parameters}
961
962 \docparam{event}{The menu command event. For more information, see \helpref{wxCommandEvent}{wxcommandevent}.}
963
964 \wxheading{Remarks}
965
966 A function with this name doesn't actually exist; you can choose any member function to receive
967 menu command events, using the EVT\_COMMAND macro for individual commands or EVT\_COMMAND\_RANGE for
968 a range of commands.
969
970 \wxheading{See also}
971
972 \helpref{wxCommandEvent}{wxcommandevent},\rtfsp
973 \helpref{wxWindow::OnMenuHighlight}{wxwindowonmenuhighlight},\rtfsp
974 \helpref{Event handling overview}{eventhandlingoverview}
975
976 \membersection{wxWindow::OnMenuHighlight}\label{wxwindowonmenuhighlight}
977
978 \func{void}{OnMenuHighlight}{\param{wxMenuEvent\& }{event}}
979
980 Called when a menu select is received from a menu bar: that is, the
981 mouse cursor is over a menu item, but the left mouse button has not been
982 pressed.
983
984 \wxheading{Parameters}
985
986 \docparam{event}{The menu highlight event. For more information, see \helpref{wxMenuEvent}{wxmenuevent}.}
987
988 \wxheading{Remarks}
989
990 You can choose any member function to receive
991 menu select events, using the EVT\_MENU\_HIGHLIGHT macro for individual menu items or EVT\_MENU\_HIGHLIGHT\_ALL macro
992 for all menu items.
993
994 The default implementation for \helpref{wxFrame::OnMenuHighlight}{wxframeonmenuhighlight} displays help
995 text in the first field of the status bar.
996
997 This function was known as {\bf OnMenuSelect} in earlier versions of wxWindows, but this was confusing
998 since a selection is normally a left-click action.
999
1000 \wxheading{See also}
1001
1002 \helpref{wxMenuEvent}{wxmenuevent},\rtfsp
1003 \helpref{wxWindow::OnMenuCommand}{wxwindowonmenucommand},\rtfsp
1004 \helpref{Event handling overview}{eventhandlingoverview}
1005
1006
1007 \membersection{wxWindow::OnMouseEvent}\label{wxwindowonmouseevent}
1008
1009 \func{void}{OnMouseEvent}{\param{wxMouseEvent\&}{ event}}
1010
1011 Called when the user has initiated an event with the
1012 mouse.
1013
1014 \wxheading{Parameters}
1015
1016 \docparam{event}{The mouse event. See \helpref{wxMouseEvent}{wxmouseevent} for
1017 more details.}
1018
1019 \wxheading{Remarks}
1020
1021 Most, but not all, windows respond to this event.
1022
1023 To intercept this event, use the EVT\_MOUSE\_EVENTS macro in an event table definition, or individual
1024 mouse event macros such as EVT\_LEFT\_DOWN.
1025
1026 \wxheading{See also}
1027
1028 \helpref{wxMouseEvent}{wxmouseevent},\rtfsp
1029 \helpref{Event handling overview}{eventhandlingoverview}
1030
1031 \membersection{wxWindow::OnMove}\label{wxwindowonmove}
1032
1033 \func{void}{OnMove}{\param{wxMoveEvent\& }{event}}
1034
1035 Called when a window is moved.
1036
1037 \wxheading{Parameters}
1038
1039 \docparam{event}{The move event. For more information, see \helpref{wxMoveEvent}{wxmoveevent}.}
1040
1041 \wxheading{Remarks}
1042
1043 Use the EVT\_MOVE macro to intercept move events.
1044
1045 \wxheading{Remarks}
1046
1047 Not currently implemented.
1048
1049 \wxheading{See also}
1050
1051 \helpref{wxMoveEvent}{wxmoveevent},\rtfsp
1052 \helpref{wxFrame::OnSize}{wxframeonsize},\rtfsp
1053 \helpref{Event handling overview}{eventhandlingoverview}
1054
1055 \membersection{wxWindow::OnPaint}\label{wxwindowonpaint}
1056
1057 \func{void}{OnPaint}{\param{wxPaintEvent\& }{event}}
1058
1059 Sent to the event handler when the window must be refreshed.
1060
1061 \wxheading{Parameters}
1062
1063 \docparam{event}{Paint event. For more information, see \helpref{wxPaintEvent}{wxpaintevent}.}
1064
1065 \wxheading{Remarks}
1066
1067 Use the EVT\_PAINT macro in an event table definition to intercept paint events.
1068
1069 In a paint event handler, the application should always create a \helpref{wxPaintDC}{wxpaintdc} object.
1070
1071 For example:
1072
1073 \small{%
1074 \begin{verbatim}
1075 void MyWindow::OnPaint(wxPaintEvent& event)
1076 {
1077 wxPaintDC dc(this);
1078
1079 DrawMyDocument(dc);
1080 }
1081 \end{verbatim}
1082 }%
1083
1084 You can optimize painting by retrieving the rectangles
1085 that have been damaged and only repainting these. The rectangles are in
1086 terms of the client area, and are unscrolled, so you will need to do
1087 some calculations using the current view position to obtain logical,
1088 scrolled units.
1089
1090 Here is an example of using the \helpref{wxUpdateIterator}{wxupdateiterator} class:
1091
1092 {\small%
1093 \begin{verbatim}
1094 // Called when window needs to be repainted.
1095 void MyWindow::OnPaint(wxPaintEvent& event)
1096 {
1097 wxPaintDC dc(this);
1098
1099 // Find Out where the window is scrolled to
1100 int vbX,vbY; // Top left corner of client
1101 ViewStart(&vbX,&vbY);
1102
1103 int vX,vY,vW,vH; // Dimensions of client area in pixels
1104 wxUpdateIterator upd(this); // get the update rect list
1105
1106 while (upd)
1107 {
1108 vX = upd.GetX();
1109 vY = upd.GetY();
1110 vW = upd.GetW();
1111 vH = upd.GetH();
1112
1113 // Alternatively we can do this:
1114 // wxRect rect;
1115 // upd.GetRect(&rect);
1116
1117 // Repaint this rectangle
1118 ...some code...
1119
1120 upd ++ ;
1121 }
1122 }
1123 \end{verbatim}
1124 }%
1125
1126 \wxheading{See also}
1127
1128 \helpref{wxPaintEvent}{wxpaintevent},\rtfsp
1129 \helpref{wxPaintDC}{wxpaintdc},\rtfsp
1130 \helpref{Event handling overview}{eventhandlingoverview}
1131
1132 \membersection{wxWindow::OnScroll}\label{wxwindowonscroll}
1133
1134 \func{void}{OnScroll}{\param{wxScrollEvent\& }{event}}
1135
1136 Called when a scroll event is received from one of the window's built-in scrollbars.
1137
1138 \wxheading{Parameters}
1139
1140 \docparam{event}{Command event. Retrieve the new scroll position by
1141 calling \helpref{wxScrollEvent::GetPosition}{wxscrolleventgetposition}, and the
1142 scrollbar orientation by calling \helpref{wxScrollEvent::GetOrientation}{wxscrolleventgetorientation}.}
1143
1144 \wxheading{Remarks}
1145
1146 Note that it is not possible to distinguish between horizontal and vertical scrollbars
1147 until the function is executing (you can't have one function for vertical, another
1148 for horizontal events).
1149
1150 \wxheading{See also}
1151
1152 \helpref{wxScrollEvent}{wxscrollevent},\rtfsp
1153 \helpref{Event handling overview}{eventhandlingoverview}
1154
1155 \membersection{wxWindow::OnSetFocus}\label{wxwindowonsetfocus}
1156
1157 \func{void}{OnSetFocus}{\param{wxFocusEvent\& }{event}}
1158
1159 Called when a window's focus is being set.
1160
1161 \wxheading{Parameters}
1162
1163 \docparam{event}{The focus event. For more information, see \helpref{wxFocusEvent}{wxfocusevent}.}
1164
1165 \wxheading{Remarks}
1166
1167 To intercept this event, use the macro EVT\_SET\_FOCUS in an event table definition.
1168
1169 Most, but not all, windows respond to this event.
1170
1171 \wxheading{See also}
1172
1173 \helpref{wxFocusEvent}{wxfocusevent}, \helpref{wxWindow::OnKillFocus}{wxwindowonkillfocus},\rtfsp
1174 \helpref{Event handling overview}{eventhandlingoverview}
1175
1176 \membersection{wxWindow::OnSize}\label{wxwindowonsize}
1177
1178 \func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
1179
1180 Called when the window has been resized.
1181
1182 \wxheading{Parameters}
1183
1184 \docparam{event}{Size event. For more information, see \helpref{wxSizeEvent}{wxsizeevent}.}
1185
1186 \wxheading{Remarks}
1187
1188 You may wish to use this for frames to resize their child windows as appropriate.
1189
1190 Note that the size passed is of
1191 the whole window: call \helpref{wxWindow::GetClientSize}{wxwindowgetclientsize} for the area which may be
1192 used by the application.
1193
1194 \wxheading{See also}
1195
1196 \helpref{wxSizeEvent}{wxsizeevent},\rtfsp
1197 \helpref{Event handling overview}{eventhandlingoverview}
1198
1199 \membersection{wxWindow::OnSysColourChanged}\label{wxwindowonsyscolourchanged}
1200
1201 \func{void}{OnSysColourChanged}{\param{wxOnSysColourChangedEvent\& }{event}}
1202
1203 Called when the user has changed the system colours.
1204
1205 \wxheading{Parameters}
1206
1207 \docparam{event}{System colour change event. For more information, see \helpref{wxSysColourChangedEvent}{wxsyscolourchangedevent}.}
1208
1209 \wxheading{See also}
1210
1211 \helpref{wxSysColourChangedEvent}{wxsyscolourchangedevent},\rtfsp
1212 \helpref{Event handling overview}{eventhandlingoverview}
1213
1214 \membersection{wxWindow::PopEventHandler}\label{wxwindowpopeventhandler}
1215
1216 \constfunc{wxEvtHandler*}{PopEventHandler}{\param{bool }{deleteHandler = FALSE}}
1217
1218 Removes and returns the top-most event handler on the event handler stack.
1219
1220 \wxheading{Parameters}
1221
1222 \docparam{deleteHandler}{If this is TRUE, the handler will be deleted after it is removed. The
1223 default value is FALSE.}
1224
1225 \wxheading{See also}
1226
1227 \helpref{wxWindow::SetEventHandler}{wxwindowseteventhandler},\rtfsp
1228 \helpref{wxWindow::GetEventHandler}{wxwindowgeteventhandler},\rtfsp
1229 \helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler},\rtfsp
1230 \helpref{wxEvtHandler::ProcessEvent}{wxevthandlerprocessevent},\rtfsp
1231 \helpref{wxEvtHandler}{wxevthandler}\rtfsp
1232
1233 \membersection{wxWindow::PopupMenu}\label{wxwindowpopupmenu}
1234
1235 \func{virtual bool}{PopupMenu}{\param{wxMenu* }{menu}, \param{int }{x}, \param{int }{y}}
1236
1237 Pops up the given menu at the specified coordinates, relative to this
1238 window, and returns control when the user has dismissed the menu. If a
1239 menu item is selected, the callback defined for the menu is called with
1240 wxMenu and wxCommandEvent reference arguments. The callback should access
1241 the commandInt member of the event to check the selected menu identifier.
1242
1243 \wxheading{Parameters}
1244
1245 \docparam{menu}{Menu to pop up.}
1246
1247 \docparam{x}{Required x position for the menu to appear.}
1248
1249 \docparam{y}{Required y position for the menu to appear.}
1250
1251 \wxheading{See also}
1252
1253 \helpref{wxMenu}{wxmenu}, \helpref{wxWindow::FakePopupMenu}{wxwindowfakepopupmenu}
1254
1255 \membersection{wxWindow::PushEventHandler}\label{wxwindowpusheventhandler}
1256
1257 \func{void}{PushEventHandler}{\param{wxEvtHandler* }{handler}}
1258
1259 Pushes this event handler onto the event stack for the window.
1260
1261 \wxheading{Parameters}
1262
1263 \docparam{handler}{Specifies the handler to be pushed.}
1264
1265 \wxheading{Remarks}
1266
1267 An event handler is an object that is capable of processing the events
1268 sent to a window. By default, the window is its own event handler, but
1269 an application may wish to substitute another, for example to allow
1270 central implementation of event-handling for a variety of different
1271 window classes.
1272
1273 \helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler} allows
1274 an application to set up a chain of event handlers, where an event not handled by one event handler is
1275 handed to the next one in the chain. Use \helpref{wxWindow::PopEventHandler}{wxwindowpopeventhandler} to
1276 remove the event handler.
1277
1278 \wxheading{See also}
1279
1280 \helpref{wxWindow::SetEventHandler}{wxwindowseteventhandler},\rtfsp
1281 \helpref{wxWindow::GetEventHandler}{wxwindowgeteventhandler},\rtfsp
1282 \helpref{wxWindow::PopEventHandler}{wxwindowpusheventhandler},\rtfsp
1283 \helpref{wxEvtHandler::ProcessEvent}{wxevthandlerprocessevent},\rtfsp
1284 \helpref{wxEvtHandler}{wxevthandler}
1285
1286 \membersection{wxWindow::Raise}\label{wxwindowraise}
1287
1288 \func{void}{Raise}{\void}
1289
1290 Raises the window to the top of the window hierarchy if it is a managed window (dialog
1291 or frame).
1292
1293 \membersection{wxWindow::Refresh}\label{wxwindowrefresh}
1294
1295 \func{virtual void}{Refresh}{\param{const bool}{ eraseBackground = TRUE}, \param{const wxRect* }{rect
1296 = NULL}}
1297
1298 Causes a message or event to be generated to repaint the
1299 window.
1300
1301 \wxheading{Parameters}
1302
1303 \docparam{eraseBackground}{If TRUE, the background will be
1304 erased.}
1305
1306 \docparam{rect}{If non-NULL, only the given rectangle will
1307 be treated as damaged.}
1308
1309 \membersection{wxWindow::ReleaseMouse}\label{wxwindowreleasemouse}
1310
1311 \func{virtual void}{ReleaseMouse}{\void}
1312
1313 Releases mouse input captured with \helpref{wxWindow::CaptureMouse}{wxwindowcapturemouse}.
1314
1315 \wxheading{See also}
1316
1317 \helpref{wxWindow::CaptureMouse}{wxwindowcapturemouse}
1318
1319 \membersection{wxWindow::RemoveChild}\label{wxwindowremovechild}
1320
1321 \func{virtual void}{RemoveChild}{\param{wxWindow* }{child}}
1322
1323 Removes a child window. This is called automatically by window deletion
1324 functions so should not be required by the application programmer.
1325
1326 \wxheading{Parameters}
1327
1328 \docparam{child}{Child window to remove.}
1329
1330 \membersection{wxWindow::ScreenToClient}
1331
1332 \constfunc{virtual void}{ScreenToClient}{\param{int* }{x}, \param{int* }{y}}
1333
1334 Converts from screen to client window coordinates.
1335
1336 \wxheading{Parameters}
1337
1338 \docparam{x}{Stores the screen x coordinate and receives the client x coordinate.}
1339
1340 \docparam{y}{Stores the screen x coordinate and receives the client x coordinate.}
1341
1342 \membersection{wxWindow::ScrollWindow}\label{wxwindowscrollwindow}
1343
1344 \func{virtual void}{ScrollWindow}{\param{int }{dx}, \param{int }{dy}, \param{const wxRect*}{ rect = NULL}}
1345
1346 Physically scrolls the pixels in the window.
1347
1348 \wxheading{Parameters}
1349
1350 \docparam{dx}{Amount to scroll horizontally.}
1351
1352 \docparam{dy}{Amount to scroll vertically.}
1353
1354 \docparam{rect}{Rectangle to invalidate. If this is NULL, the whole window is invalidated. If you
1355 pass a rectangle corresponding to the area of the window exposed by the scroll, your painting handler
1356 can optimise painting by checking for the invalidated region.}
1357
1358 \wxheading{Remarks}
1359
1360 Available only under Windows.
1361
1362 Use this function to optimise your scrolling implementations, to minimise the area that must be
1363 redrawn.
1364
1365 \membersection{wxWindow::SetAutoLayout}\label{wxwindowsetautolayout}
1366
1367 \func{void}{SetAutoLayout}{\param{const bool}{ autoLayout}}
1368
1369 Determines whether the \helpref{wxWindow::Layout}{wxwindowlayout} function will
1370 be called automatically when the window is resized.
1371
1372 \wxheading{Parameters}
1373
1374 \docparam{autoLayout}{Set this to TRUE if you wish the Layout function to be called
1375 from within wxWindow::OnSize functions.}
1376
1377 \wxheading{See also}
1378
1379 \helpref{wxWindow::SetConstraints}{wxwindowsetconstraints}
1380
1381 \membersection{wxWindow::SetBackgroundColour}\label{wxwindowsetbackgroundcolour}
1382
1383 \func{virtual void}{SetBackgroundColour}{\param{const wxColour\& }{colour}}
1384
1385 Sets the background colour of the window.
1386
1387 \wxheading{Parameters}
1388
1389 \docparam{colour}{The colour to be used as the background colour.}
1390
1391 \wxheading{Remarks}
1392
1393 The background colour is usually painted by the default\rtfsp
1394 \helpref{wxWindow::OnEraseBackground}{wxwindowonerasebackground} event handler function.
1395
1396 \wxheading{See also}
1397
1398 \helpref{wxWindow::GetBackgroundColour}{wxwindowgetbackgroundcolour},\rtfsp
1399 \helpref{wxWindow::SetForegroundColour}{wxwindowsetforegroundcolour},\rtfsp
1400 \helpref{wxWindow::GetForegroundColour}{wxwindowgetforegroundcolour},\rtfsp
1401 \helpref{wxWindow::OnEraseBackground}{wxwindowonerasebackground}
1402
1403 \membersection{wxWindow::SetConstraints}\label{wxwindowsetconstraints}
1404
1405 \func{void}{SetConstraints}{\param{wxLayoutConstraints* }{constraints}}
1406
1407 Sets the window to have the given layout constraints. The window
1408 will then own the object, and will take care of its deletion.
1409 If an existing layout constraints object is already owned by the
1410 window, it will be deleted.
1411
1412 \wxheading{Parameters}
1413
1414 \docparam{constraints}{The constraints to set. Pass NULL to disassociate and delete the window's
1415 constraints.}
1416
1417 \wxheading{Remarks}
1418
1419 You must call \helpref{wxWindow::SetAutoLayout}{wxwindowsetautolayout} to tell a window to use
1420 the constraints automatically in OnSize; otherwise, you must
1421 override OnSize and call Layout explicitly.
1422
1423 \membersection{wxWindow::SetFocus}\label{wxwindowsetfocus}
1424
1425 \func{virtual void}{SetFocus}{\void}
1426
1427 This sets the window to receive keyboard input.
1428
1429 \membersection{wxWindow::SetFont}\label{wxwindowsetfont}
1430
1431 \func{void}{SetFont}{\param{const wxFont\& }{font}}
1432
1433 Sets the font for this window.
1434
1435 \wxheading{Parameters}
1436
1437 \docparam{font}{Font to associate with this window.}
1438
1439 \wxheading{See also}
1440
1441 \helpref{wxWindow::GetFont}{wxwindowgetfont}
1442
1443 \membersection{wxWindow::SetForegroundColour}\label{wxwindowsetforegroundcolour}
1444
1445 \func{virtual void}{SetForegroundColour}{\param{const wxColour\& }{colour}}
1446
1447 Sets the foreground colour of the window.
1448
1449 \wxheading{Parameters}
1450
1451 \docparam{colour}{The colour to be used as the foreground colour.}
1452
1453 \wxheading{Remarks}
1454
1455 The interpretation of foreground colour is open to interpretation according
1456 to the window class; it may be the text colour or other colour, or it may not
1457 be used at all.
1458
1459 \wxheading{See also}
1460
1461 \helpref{wxWindow::GetForegroundColour}{wxwindowgetforegroundcolour},\rtfsp
1462 \helpref{wxWindow::SetBackgroundColour}{wxwindowsetbackgroundcolour},\rtfsp
1463 \helpref{wxWindow::GetBackgroundColour}{wxwindowgetbackgroundcolour}
1464
1465 \membersection{wxWindow::SetId}\label{wxwindowsetid}
1466
1467 \func{void}{SetId}{\param{int}{ id}}
1468
1469 Sets the identifier of the window.
1470
1471 \wxheading{Remarks}
1472
1473 Each window has an integer identifier. If the application has not provided one,
1474 an identifier will be generated. Normally, the identifier should be provided
1475 on creation and should not be modified subsequently.
1476
1477 TODO: perhaps there should be a default identifier for each class, rather
1478 choosing one, which could clash with other ones.
1479
1480 \wxheading{See also}
1481
1482 \helpref{wxWindow::GetId}{wxwindowgetid}
1483
1484
1485 \membersection{wxWindow::SetName}\label{wxwindowsetname}
1486
1487 \func{virtual void}{SetName}{\param{const wxString\& }{name}}
1488
1489 Sets the window's name.
1490
1491 \wxheading{Parameters}
1492
1493 \docparam{name}{A name to set for the window.}
1494
1495 \wxheading{See also}
1496
1497 \helpref{wxWindow::GetName}{wxwindowgetname}
1498
1499 \membersection{wxWindow::SetReturnCode}\label{wxwindowsetreturncode}
1500
1501 \func{void}{SetReturnCode}{\param{int }{retCode}}
1502
1503 Sets the return code for this window.
1504
1505 \wxheading{Parameters}
1506
1507 \docparam{retCode}{The integer return code, usually a control identifier.}
1508
1509 \wxheading{Remarks}
1510
1511 A return code is normally associated with a modal dialog, where \helpref{wxDialog::ShowModal}{wxdialogshowmodal} returns
1512 a code to the application. The function \helpref{wxDialog::EndModal}{wxdialogendmodal} calls {\bf SetReturnCode}.
1513
1514 \wxheading{See also}
1515
1516 \helpref{wxWindow::GetReturnCode}{wxwindowgetreturncode}, \helpref{wxDialog::ShowModal}{wxdialogshowmodal},\rtfsp
1517 \helpref{wxDialog::EndModal}{wxdialogendmodal}
1518
1519 \membersection{wxWindow::SetScrollbar}\label{wxwindowsetscrollbar}
1520
1521 \func{virtual void}{SetScrollbar}{\param{int }{orientation}, \param{int }{position},\rtfsp
1522 \param{int }{thumbSize}, \param{int }{range},\rtfsp
1523 \param{const bool }{refresh = TRUE}}
1524
1525 Sets the scrollbar properties of a built-in scrollbar.
1526
1527 \wxheading{Parameters}
1528
1529 \docparam{orientation}{Determines the scrollbar whose page size is to be set. May be wxHORIZONTAL or wxVERTICAL.}
1530
1531 \docparam{position}{The position of the scrollbar in scroll units.}
1532
1533 \docparam{thumbSize}{The size of the thumb, or visible portion of the scrollbar, in scroll units.}
1534
1535 \docparam{range}{The maximum position of the scrollbar.}
1536
1537 \docparam{refresh}{TRUE to redraw the scrollbar, FALSE otherwise.}
1538
1539 \wxheading{Remarks}
1540
1541 Let's say you wish to display 50 lines of text, using the same font.
1542 The window is sized so that you can only see 16 lines at a time.
1543
1544 You would use:
1545
1546 {\small%
1547 \begin{verbatim}
1548 SetScrollbar(wxVERTICAL, 0, 16, 50);
1549 \end{verbatim}
1550 }
1551
1552 Note that with the window at this size, the thumb position can never go
1553 above 50 minus 16, or 34.
1554
1555 You can determine how many lines are currently visible by dividing the current view
1556 size by the character height in pixels.
1557
1558 When defining your own scrollbar behaviour, you will always need to recalculate
1559 the scrollbar settings when the window size changes. You could therefore put your
1560 scrollbar calculations and SetScrollbar
1561 call into a function named AdjustScrollbars, which can be called initially and also
1562 from your \helpref{wxWindow::OnSize}{wxwindowonsize} event handler function.
1563
1564 \wxheading{See also}
1565
1566 \helpref{Scrolling overview}{scrollingoverview},\rtfsp
1567 \helpref{wxScrollBar}{wxscrollbar}, \helpref{wxScrolledWindow}{wxscrolledwindow}
1568
1569 \begin{comment}
1570 \membersection{wxWindow::SetScrollPage}\label{wxwindowsetscrollpage}
1571
1572 \func{virtual void}{SetScrollPage}{\param{int }{orientation}, \param{int }{pageSize}, \param{const bool }{refresh = TRUE}}
1573
1574 Sets the page size of one of the built-in scrollbars.
1575
1576 \wxheading{Parameters}
1577
1578 \docparam{orientation}{Determines the scrollbar whose page size is to be set. May be wxHORIZONTAL or wxVERTICAL.}
1579
1580 \docparam{pageSize}{Page size in scroll units.}
1581
1582 \docparam{refresh}{TRUE to redraw the scrollbar, FALSE otherwise.}
1583
1584 \wxheading{Remarks}
1585
1586 The page size of a scrollbar is the number of scroll units that the scroll thumb travels when you
1587 click on the area above/left of or below/right of the thumb. Normally you will want a whole visible
1588 page to be scrolled, i.e. the size of the current view (perhaps the window client size). This
1589 value has to be adjusted when the window is resized, since the page size will have changed.
1590
1591 In addition to specifying how far the scroll thumb travels when paging, in Motif and some versions of Windows
1592 the thumb changes size to reflect the page size relative to the length of the document. When the
1593 document size is only slightly bigger than the current view (window) size, almost all of the scrollbar
1594 will be taken up by the thumb. When the two values become the same, the scrollbar will (on some systems)
1595 disappear.
1596
1597 Currently, this function should be called before SetPageRange, because of a quirk in the Windows
1598 handling of pages and ranges.
1599
1600 \wxheading{See also}
1601
1602 \helpref{wxWindow::SetScrollPos}{wxwindowsetscrollpos},\rtfsp
1603 \helpref{wxWindow::SetScrollRange}{wxwindowsetscrollpage},\rtfsp
1604 \helpref{wxWindow::GetScrollPos}{wxwindowsetscrollpos},\rtfsp
1605 \helpref{wxWindow::GetScrollRange}{wxwindowsetscrollrange},\rtfsp
1606 \helpref{wxWindow::GetScrollPage}{wxwindowsetscrollrange},\rtfsp
1607 \helpref{wxScrollBar}{wxscrollbar}, \helpref{wxScrolledWindow}{wxscrolledwindow}
1608 \end{comment}
1609
1610 \membersection{wxWindow::SetScrollPos}\label{wxwindowsetscrollpos}
1611
1612 \func{virtual void}{SetScrollPos}{\param{int }{orientation}, \param{int }{pos}, \param{const bool }{refresh = TRUE}}
1613
1614 Sets the position of one of the built-in scrollbars.
1615
1616 \wxheading{Parameters}
1617
1618 \docparam{orientation}{Determines the scrollbar whose position is to be set. May be wxHORIZONTAL or wxVERTICAL.}
1619
1620 \docparam{pos}{Position in scroll units.}
1621
1622 \docparam{refresh}{TRUE to redraw the scrollbar, FALSE otherwise.}
1623
1624 \wxheading{Remarks}
1625
1626 This function does not directly affect the contents of the window: it is up to the
1627 application to take note of scrollbar attributes and redraw contents accordingly.
1628
1629 \wxheading{See also}
1630
1631 \helpref{wxWindow::SetScrollbar}{wxwindowsetscrollbar},\rtfsp
1632 \helpref{wxWindow::GetScrollPos}{wxwindowsetscrollpos},\rtfsp
1633 \helpref{wxWindow::GetScrollRange}{wxwindowsetscrollrange},\rtfsp
1634 \helpref{wxWindow::GetScrollThumb}{wxwindowsetscrollthumb},\rtfsp
1635 \helpref{wxScrollBar}{wxscrollbar}, \helpref{wxScrolledWindow}{wxscrolledwindow}
1636
1637 \begin{comment}
1638 \membersection{wxWindow::SetScrollRange}\label{wxwindowsetscrollrange}
1639
1640 \func{virtual void}{SetScrollRange}{\param{int }{orientation}, \param{int }{range}, \param{const bool }{refresh = TRUE}}
1641
1642 Sets the range of one of the built-in scrollbars.
1643
1644 \wxheading{Parameters}
1645
1646 \docparam{orientation}{Determines the scrollbar whose range is to be set. May be wxHORIZONTAL or wxVERTICAL.}
1647
1648 \docparam{range}{Scroll range.}
1649
1650 \docparam{refresh}{TRUE to redraw the scrollbar, FALSE otherwise.}
1651
1652 \wxheading{Remarks}
1653
1654 The range of a scrollbar is the number of steps that the thumb may travel, rather than the total
1655 object length of the scrollbar. If you are implementing a scrolling window, for example, you
1656 would adjust the scroll range when the window is resized, by subtracting the window view size from the
1657 total virtual window size. When the two sizes are the same (all the window is visible), the range goes to zero
1658 and usually the scrollbar will be automatically hidden.
1659
1660 \wxheading{See also}
1661
1662 \helpref{wxWindow::SetScrollPos}{wxwindowsetscrollpos},\rtfsp
1663 \helpref{wxWindow::SetScrollPage}{wxwindowsetscrollpage},\rtfsp
1664 \helpref{wxWindow::GetScrollPos}{wxwindowsetscrollpos},\rtfsp
1665 \helpref{wxWindow::GetScrollRange}{wxwindowsetscrollrange},\rtfsp
1666 \helpref{wxWindow::GetScrollPage}{wxwindowsetscrollrange},\rtfsp
1667 \helpref{wxScrollBar}{wxscrollbar}, \helpref{wxScrolledWindow}{wxscrolledwindow}
1668 \end{comment}
1669
1670 \membersection{wxWindow::SetSize}\label{wxwindowsetsize}
1671
1672 \func{virtual void}{SetSize}{\param{int}{ x}, \param{int}{ y}, \param{int}{ width}, \param{int}{ height},
1673 \param{int}{ sizeFlags = wxSIZE\_AUTO}}
1674
1675 Sets the size and position of the window in pixels.
1676
1677 \func{virtual void}{SetSize}{\param{int}{ width}, \param{int}{ height}}
1678
1679 Sets the size of the window in pixels.
1680
1681 \wxheading{Parameters}
1682
1683 \docparam{x}{Required x position in pixels, or -1 to indicate that the existing
1684 value should be used.}
1685
1686 \docparam{y}{Required y position in pixels, or -1 to indicate that the existing
1687 value should be used.}
1688
1689 \docparam{width}{Required width in pixels, or -1 to indicate that the existing
1690 value should be used.}
1691
1692 \docparam{height}{Required height position in pixels, or -1 to indicate that the existing
1693 value should be used.}
1694
1695 \docparam{sizeFlags}{Indicates the interpretation of other parameters. It is a bit list of the following:
1696
1697 {\bf wxSIZE\_AUTO\_WIDTH}: a -1 width value is taken to indicate
1698 a wxWindows-supplied default width.\\
1699 {\bf wxSIZE\_AUTO\_HEIGHT}: a -1 height value is taken to indicate
1700 a wxWindows-supplied default width.\\
1701 {\bf wxSIZE\_AUTO}: -1 size values are taken to indicate
1702 a wxWindows-supplied default size.\\
1703 {\bf wxSIZE\_USE\_EXISTING}: existing dimensions should be used
1704 if -1 values are supplied.\\
1705 {\bf wxSIZE\_ALLOW\_MINUS\_ONE}: allow dimensions of -1 and less to be interpreted
1706 as real dimensions, not default values.
1707 }
1708
1709 \wxheading{Remarks}
1710
1711 The second form is a convenience for calling the first form with default
1712 x and y parameters, and must be used with non-default width and height values.
1713
1714 The first form sets the position and optionally size, of the window.
1715 Parameters may be -1 to indicate either that a default should be supplied
1716 by wxWindows, or that the current value of the dimension should be used.
1717
1718 \wxheading{See also}
1719
1720 \helpref{wxWindow::Move}{wxwindowmove}
1721
1722 \membersection{wxWindow::SetSizeHints}\label{wxwindowsetsizehints}
1723
1724 \func{virtual void}{SetSizeHints}{\param{int}{ minW=-1}, \param{int}{ minH=-1}, \param{int}{ maxW=-1}, \param{int}{ maxH=-1},
1725 \param{int}{ incW=-1}, \param{int}{ incH=-1}}
1726
1727 Allows specification of minimum and maximum window sizes, and window size increments.
1728 If a pair of values is not set (or set to -1), the default values will be used.
1729
1730 \wxheading{Parameters}
1731
1732 \docparam{minW}{Specifies the minimum width allowable.}
1733
1734 \docparam{minH}{Specifies the minimum height allowable.}
1735
1736 \docparam{maxW}{Specifies the maximum width allowable.}
1737
1738 \docparam{maxH}{Specifies the maximum height allowable.}
1739
1740 \docparam{incW}{Specifies the increment for sizing the width (Motif/Xt only).}
1741
1742 \docparam{incH}{Specifies the increment for sizing the height (Motif/Xt only).}
1743
1744 \wxheading{Remarks}
1745
1746 If this function is called, the user will not be able to size the window outside the
1747 given bounds.
1748
1749 The resizing increments are only significant under Motif or Xt.
1750
1751 \membersection{wxWindow::SetClientSize}
1752
1753 \func{virtual void}{SetClientSize}{\param{int}{ width}, \param{int}{ height}}
1754
1755 This sets the size of the window client area in pixels. Using this function to size a window
1756 tends to be more device-independent than \helpref{wxWindow::SetSize}{wxwindowsetsize}, since the application need not
1757 worry about what dimensions the border or title bar have when trying to fit the window
1758 around panel items, for example.
1759
1760 \wxheading{Parameters}
1761
1762 \docparam{width}{The required client area width.}
1763
1764 \docparam{height}{The required client area height.}
1765
1766 \membersection{wxWindow::SetPalette}
1767
1768 \func{virtual void}{SetPalette}{\param{wxPalette* }{palette}}
1769
1770 Obsolete - use \helpref{wxDC::SetPalette}{wxdcsetpalette} instead.
1771
1772 \membersection{wxWindow::SetCursor}\label{wxwindowsetcursor}
1773
1774 \func{virtual void}{SetCursor}{\param{const wxCursor\&}{cursor}}
1775
1776 Sets the window's cursor.
1777
1778 \wxheading{Parameters}
1779
1780 \docparam{cursor}{Specifies the cursor that the window should normally display.}
1781
1782 \wxheading{Remarks}
1783
1784 Under Windows, you sometimes need to call ::wxSetCursor in addition to this
1785 function if you want the cursor to change immediately, because under Windows,
1786 wxWindows only sets the global cursor when it detects mouse movement.
1787
1788 \wxheading{See also}
1789
1790 \helpref{::wxSetCursor}{wxsetcursor}, \helpref{wxCursor}{wxcursor}
1791
1792 \membersection{wxWindow::SetEventHandler}\label{wxwindowseteventhandler}
1793
1794 \func{void}{SetEventHandler}{\param{wxEvtHandler* }{handler}}
1795
1796 Sets the event handler for this window.
1797
1798 \wxheading{Parameters}
1799
1800 \docparam{handler}{Specifies the handler to be set.}
1801
1802 \wxheading{Remarks}
1803
1804 An event handler is an object that is capable of processing the events
1805 sent to a window. By default, the window is its own event handler, but
1806 an application may wish to substitute another, for example to allow
1807 central implementation of event-handling for a variety of different
1808 window classes.
1809
1810 It is usually better to use \helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler} since
1811 this sets up a chain of event handlers, where an event not handled by one event handler is
1812 handed to the next one in the chain.
1813
1814 \wxheading{See also}
1815
1816 \helpref{wxWindow::GetEventHandler}{wxwindowgeteventhandler},\rtfsp
1817 \helpref{wxWindow::PushEventHandler}{wxwindowpusheventhandler},\rtfsp
1818 \helpref{wxWindow::PopEventHandler}{wxwindowpusheventhandler},\rtfsp
1819 \helpref{wxEvtHandler::ProcessEvent}{wxevthandlerprocessevent},\rtfsp
1820 \helpref{wxEvtHandler}{wxevthandler}
1821
1822 \membersection{wxWindow::SetTitle}\label{wxwindowsettitle}
1823
1824 \func{virtual void}{SetTitle}{\param{const wxString\& }{title}}
1825
1826 Sets the window's title. Applicable only to frames and dialogs.
1827
1828 \wxheading{Parameters}
1829
1830 \docparam{title}{The window's title.}
1831
1832 \wxheading{See also}
1833
1834 \helpref{wxWindow::GetTitle}{wxwindowgettitle}
1835
1836 \membersection{wxWindow::Show}
1837
1838 \func{virtual bool}{Show}{\param{const bool}{ show}}
1839
1840 Shows or hides the window.
1841
1842 \wxheading{Parameters}
1843
1844 \docparam{show}{If TRUE, displays the window and brings it to the front. Otherwise,
1845 hides the window.}
1846
1847 \wxheading{See also}
1848
1849 \helpref{wxWindow::IsShown}{wxwindowisshown}
1850
1851 \membersection{wxWindow::TransferDataFromWindow}\label{wxwindowtransferdatafromwindow}
1852
1853 \func{virtual bool}{TransferDataFromWindow}{\void}
1854
1855 Transfers values from child controls to data areas specified by their validators. Returns
1856 FALSE if a transfer failed.
1857
1858 \wxheading{See also}
1859
1860 \helpref{wxWindow::TransferDataToWindow}{wxwindowtransferdatatowindow},\rtfsp
1861 \helpref{wxValidator}{wxvalidator}, \helpref{wxWindow::Validate}{wxwindowvalidate}
1862
1863 \membersection{wxWindow::TransferDataToWindow}\label{wxwindowtransferdatatowindow}
1864
1865 \func{virtual bool}{TransferDataToWindow}{\void}
1866
1867 Transfers values to child controls from data areas specified by their validators.
1868
1869 \wxheading{Return value}
1870
1871 Returns FALSE if a transfer failed.
1872
1873 \wxheading{See also}
1874
1875 \helpref{wxWindow::TransferDataFromWindow}{wxwindowtransferdatafromwindow},\rtfsp
1876 \helpref{wxValidator}{wxvalidator}, \helpref{wxWindow::Validate}{wxwindowvalidate}
1877
1878 \membersection{wxWindow::Validate}\label{wxwindowvalidate}
1879
1880 \func{virtual bool}{Validate}{\void}
1881
1882 Validates the current values of the child controls using their validators.
1883
1884 \wxheading{Return value}
1885
1886 Returns FALSE if any of the validations failed.
1887
1888 \wxheading{See also}
1889
1890 \helpref{wxWindow::TransferDataFromWindow}{wxwindowtransferdatafromwindow},\rtfsp
1891 \helpref{wxWindow::TransferDataFromWindow}{wxwindowtransferdatafromwindow},\rtfsp
1892 \helpref{wxValidator}{wxvalidator}
1893
1894 \membersection{wxWindow::WarpPointer}\label{wxwindowwarppointer}
1895
1896 \func{void}{WarpPointer}{\param{int}{ x}, \param{int}{ y}}
1897
1898 Moves the pointer to the given position on the window.
1899
1900 \wxheading{Parameters}
1901
1902 \docparam{x}{The new x position for the cursor.}
1903
1904 \docparam{y}{The new y position for the cursor.}
1905