1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxActivateEvent}}\label{wxactivateevent}
|
|
|
|
|
|
|
|
An activate event is sent when a window or application is being activated
|
|
|
|
or deactivated.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxEvent}{wxevent}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/event.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{Event table macros}
|
|
|
|
|
|
|
|
To process an activate event, use these event handler macros to direct input to a member
|
|
|
|
function that takes a wxActivateEvent argument.
|
|
|
|
|
|
|
|
\twocolwidtha{7cm}
|
|
|
|
\begin{twocollist}\itemsep=0pt
|
|
|
|
\twocolitem{{\bf EVT\_ACTIVATE(func)}}{Process a wxEVT\_ACTIVATE event.}
|
|
|
|
\twocolitem{{\bf EVT\_ACTIVATE\_APP(func)}}{Process a wxEVT\_ACTIVATE\_APP event.}
|
|
|
|
\end{twocollist}%
|
|
|
|
|
|
|
|
\wxheading{Remarks}
|
|
|
|
|
|
|
|
A top-level window (a dialog or frame) receives an activate event when is
|
|
|
|
being activated or deactivated. This is indicated visually by the title
|
|
|
|
bar changing colour, and a subwindow gaining the keyboard focus.
|
|
|
|
|
|
|
|
An application is activated or deactivated when one of its frames becomes activated,
|
|
|
|
or a frame becomes inactivate resulting in all application frames being inactive. (Windows only)
|
|
|
|
|
2004-10-14 18:31:52 -04:00
|
|
|
Please note that usually you should call \helpref{event.Skip()}{wxeventskip} in
|
|
|
|
your handlers for these events as not doing so can result in strange effects,
|
|
|
|
especially on Mac platform.
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2004-10-14 18:31:52 -04:00
|
|
|
\helpref{Event handling overview}{eventhandlingoverview},\rtfsp
|
|
|
|
\helpref{wxApp::IsActive}{wxappisactive}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-10-04 11:13:52 -04:00
|
|
|
\membersection{wxActivateEvent::wxActivateEvent}\label{wxactivateeventctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\func{}{wxActivateEvent}{\param{WXTYPE }{eventType = 0}, \param{bool}{ active = true}, \param{int }{id = 0}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\membersection{wxActivateEvent::GetActive}\label{wxactivateeventgetactive}
|
|
|
|
|
|
|
|
\constfunc{bool}{GetActive}{\void}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true if the application or window is being activated, false otherwise.
|
1998-05-20 10:25:30 -04:00
|
|
|
|