]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/helpevt.tex
remove duplicate m_popupInterface (patch 1509424)
[wxWidgets.git] / docs / latex / wx / helpevt.tex
CommitLineData
0460407f
JS
1\section{\class{wxHelpEvent}}\label{wxhelpevent}
2
3A help event is sent when the user has requested context-sensitive help.
4This can either be caused by the application requesting
5context-sensitive help mode via \helpref{wxContextHelp}{wxcontexthelp}, or
6(on MS Windows) by the system generating a WM\_HELP message when the user pressed F1 or clicked
7on the query button in a dialog caption.
8
9A help event is sent to the window that the user clicked on, and is propagated up the
10window hierarchy until the event is processed or there are no more event handlers.
11The application should call wxEvent::GetId to check the identity of the clicked-on window,
12and then either show some suitable help or call wxEvent::Skip if the identifier is unrecognised.
fc2171bd 13Calling Skip is important because it allows wxWidgets to generate further events for ancestors
0460407f
JS
14of the clicked-on window. Otherwise it would be impossible to show help for container windows,
15since processing would stop after the first window found.
16
17\wxheading{Derived from}
18
19\helpref{wxCommandEvent}{wxcommandevent}\\
20\helpref{wxEvent}{wxevent}\\
21\helpref{wxObject}{wxobject}
22
23\wxheading{Include files}
24
25<wx/event.h>
26
27\wxheading{Event table macros}
28
29To process an activate event, use these event handler macros to direct input to a member
30function that takes a wxHelpEvent argument.
31
32\twocolwidtha{7cm}
33\begin{twocollist}\itemsep=0pt
34\twocolitem{{\bf EVT\_HELP(id, func)}}{Process a wxEVT\_HELP event.}
35\twocolitem{{\bf EVT\_HELP\_RANGE(id1, id2, func)}}{Process a wxEVT\_HELP event for a range of ids.}
36\end{twocollist}%
37
38\wxheading{See also}
39
40\helpref{wxContextHelp}{wxcontexthelp},\rtfsp
41\helpref{wxDialog}{wxdialog},\rtfsp
42\helpref{Event handling overview}{eventhandlingoverview}
43
44\latexignore{\rtfignore{\wxheading{Members}}}
45
f0e8a2d0 46\membersection{wxHelpEvent::wxHelpEvent}\label{wxhelpeventctor}
0460407f 47
f6e9a818 48\func{}{wxHelpEvent}{\param{WXTYPE }{eventType = 0}, \param{wxWindowID }{id = 0},
0460407f
JS
49 \param{const wxPoint\& }{point}}
50
51Constructor.
52
f2f8871a
VZ
53\membersection{wxHelpEvent::GetOrigin}\label{wxhelpeventgetorigin}
54
55\constfunc{wxHelpEvent::Origin }{GetOrigin}{\void}
56
d57725b5
VZ
57Returns the origin of the help event which is one of the following values:
58
59\twocolwidtha{7cm}
60\begin{twocollist}\itemsep=0pt
61\twocolitem{{\bf Origin\_Unknown}}{Unrecognized event source.}
62\twocolitem{{\bf Origin\_Keyboard}}{Event generated by \texttt{F1} key press.}
63\twocolitem{{\bf Origin\_HelpButton}}{Event generated by
64\helpref{wxContextHelp}{wxcontexthelp} or using the "?" title bur button under
65MS Windows.}
66\end{twocollist}
67
68The application may handle events generated using the keyboard or mouse
69differently, e.g. by using \helpref{wxGetMousePosition()}{wxgetmouseposition}
70for the mouse events.
f2f8871a
VZ
71
72\wxheading{See also}
73
d57725b5 74\helpref{wxHelpEvent::SetOrigin}{wxhelpeventsetorigin}
f2f8871a
VZ
75
76
0460407f
JS
77\membersection{wxHelpEvent::GetPosition}\label{wxhelpeventgetposition}
78
79\constfunc{const wxPoint\&}{GetPosition}{\void}
80
81Returns the left-click position of the mouse, in screen coordinates. This allows
82the application to position the help appropriately.
83
f2f8871a
VZ
84\membersection{wxHelpEvent::SetOrigin}\label{wxhelpeventsetorigin}
85
86\func{void}{SetOrigin}{\param{wxHelpEvent::Origin }{origin}}
87
d57725b5 88Set the help event origin, only used internally by wxWidgets normally.
f2f8871a
VZ
89
90\wxheading{See also}
91
d57725b5 92\helpref{wxHelpEvent::GetOrigin}{wxhelpeventgetorigin}
f2f8871a
VZ
93
94
0460407f
JS
95\membersection{wxHelpEvent::SetPosition}\label{wxhelpeventsetposition}
96
97\func{void}{SetPosition}{\param{const wxPoint\&}{ pt}}
98
99Sets the left-click position of the mouse, in screen coordinates.
100