]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/chfocevt.tex
Added logic, API and docs for wxDataViewModel::HasDefaultCompare indicating a compare...
[wxWidgets.git] / docs / latex / wx / chfocevt.tex
... / ...
CommitLineData
1\section{\class{wxChildFocusEvent}}\label{wxchildfocusevent}
2
3A child focus event is sent to a (parent-)window when one of its child windows gains focus,
4so that the window could restore the focus back to its corresponding child
5if it loses it now and regains later.
6
7Notice that child window is the direct child of the window receiving event.
8Use \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
26To process a child focus event, use this event handler macro to direct input to a member
27function 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
45Constructor.
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
54Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.
55
56To get the actually focused control use \helpref{wxWindow::FindFocus}{wxwindowfindfocus}.
57