]>
Commit | Line | Data |
---|---|---|
1 | \section{\class{wxChildFocusEvent}}\label{wxchildfocusevent} | |
2 | ||
3 | A child focus event is sent to a (parent-)window when one of its child windows gains focus, | |
4 | so that the window could restore the focus back to its corresponding child | |
5 | if it loses it now and regains later. | |
6 | ||
7 | Notice that child window is the direct child of the window receiving event. | |
8 | Use \helpref{FindFocus}{wxwindowfindfocus} to retreive the window which is actually getting focus. | |
9 | ||
10 | \wxheading{Derived from} | |
11 | ||
12 | \helpref{wxCommandEvent}{wxcommandevent}\\ | |
13 | \helpref{wxEvent}{wxevent}\\ | |
14 | \helpref{wxObject}{wxobject} | |
15 | ||
16 | \wxheading{Include files} | |
17 | ||
18 | <wx/event.h> | |
19 | ||
20 | \wxheading{Library} | |
21 | ||
22 | \helpref{wxCore}{librarieslist} | |
23 | ||
24 | \wxheading{Event table macros} | |
25 | ||
26 | To process a child focus event, use this event handler macro to direct input to a member | |
27 | function that takes a wxChildFocusEvent argument. | |
28 | ||
29 | \twocolwidtha{7cm} | |
30 | \begin{twocollist}\itemsep=0pt | |
31 | \twocolitem{{\bf EVT\_CHILD\_FOCUS(func)}}{Process a wxEVT\_CHILD\_FOCUS event.} | |
32 | \end{twocollist}% | |
33 | ||
34 | \wxheading{See also} | |
35 | ||
36 | \helpref{Event handling overview}{eventhandlingoverview} | |
37 | ||
38 | \latexignore{\rtfignore{\wxheading{Members}}} | |
39 | ||
40 | ||
41 | \membersection{wxChildFocusEvent::wxChildFocusEvent}\label{wxchildfocuseventctor} | |
42 | ||
43 | \func{}{wxChildFocusEvent}{\param{wxWindow *}{win = NULL}} | |
44 | ||
45 | Constructor. | |
46 | ||
47 | \wxheading{Parameters} | |
48 | ||
49 | \docparam{win}{The direct child which is (or which contains the window which is) receiving the focus.} | |
50 | ||
51 | ||
52 | \membersection{wxChildFocusEvent::GetWindow}\label{wxchildfocuseventgetwindow} | |
53 | ||
54 | Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus. | |
55 | ||
56 | To get the actually focused control use \helpref{wxWindow::FindFocus}{wxwindowfindfocus}. | |
57 |