]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/focusevt.tex
support for huge files (patch 1002226)
[wxWidgets.git] / docs / latex / wx / focusevt.tex
CommitLineData
a660d684
KB
1\section{\class{wxFocusEvent}}\label{wxfocusevent}
2
8204abde
VZ
3A focus event is sent when a window's focus changes. The window losing focus
4receives a ``kill focus'' event while the window gaining it gets a ``set
5focus'' one.
6
7Notice that the set focus event happens both when the user gives focus to the
8window (whether using the mouse or keyboard) and when it is done from the
9program itself using \helpref{SetFocus}{wxwindowsetfocus}.
a660d684
KB
10
11\wxheading{Derived from}
12
13\helpref{wxEvent}{wxevent}\\
14\helpref{wxObject}{wxobject}
15
954b8ae6
JS
16\wxheading{Include files}
17
18<wx/event.h>
19
a660d684
KB
20\wxheading{Event table macros}
21
22To process a focus event, use these event handler macros to direct input to a member
23function that takes a wxFocusEvent argument.
24
25\twocolwidtha{7cm}
26\begin{twocollist}\itemsep=0pt
27\twocolitem{{\bf EVT\_SET\_FOCUS(func)}}{Process a wxEVT\_SET\_FOCUS event.}
28\twocolitem{{\bf EVT\_KILL\_FOCUS(func)}}{Process a wxEVT\_KILL\_FOCUS event.}
29\end{twocollist}%
30
31\wxheading{See also}
32
a660d684
KB
33\helpref{Event handling overview}{eventhandlingoverview}
34
35\latexignore{\rtfignore{\wxheading{Members}}}
36
37\membersection{wxFocusEvent::wxFocusEvent}
38
39\func{}{wxFocusEvent}{\param{WXTYPE }{eventType = 0}, \param{int }{id = 0}}
40
41Constructor.
42