]>
Commit | Line | Data |
---|---|---|
a701b455 JS |
1 | \section{\class{wxNavigationKeyEvent}}\label{wxnavigationkeyevent}\r |
2 | \r | |
3 | This event class contains information about navigation events,\r | |
4 | generated by navigation keys such as tab and page down.\r | |
5 | \r | |
6 | This event is mainly used by wxWidgets implementations. A\r | |
7 | wxNavigationKeyEvent handler is automatically provided by wxWidgets\r | |
8 | when you make a class into a control container with the macro WX\_DECLARE\_CONTROL\_CONTAINER.\r | |
9 | \r | |
10 | \wxheading{Derived from}\r | |
11 | \r | |
12 | \helpref{wxEvent}{wxevent}\\\r | |
13 | \helpref{wxObject}{wxobject}\r | |
14 | \r | |
15 | \wxheading{Include files}\r | |
16 | \r | |
17 | <wx/event.h>\r | |
18 | \r | |
19 | \wxheading{Library}\r | |
20 | \r | |
21 | \helpref{wxCore}{librarieslist}\r | |
22 | \r | |
23 | \wxheading{Event table macros}\r | |
24 | \r | |
25 | To process a navigation command event, use these event handler macros to direct input to member\r | |
26 | functions that take a wxNavigationKeyEvent argument.\r | |
27 | \r | |
28 | \twocolwidtha{7cm}\r | |
29 | \begin{twocollist}\itemsep=0pt\r | |
30 | \twocolitem{{\bf EVT\_NAVIGATION\_KEY(func)}}{Process a navigation key event.}\r | |
31 | \end{twocollist}%\r | |
32 | \r | |
33 | \latexignore{\rtfignore{\wxheading{Types}}}\r | |
34 | \r | |
35 | \begin{verbatim}\r | |
36 | enum\r | |
37 | {\r | |
38 | IsBackward = 0x0000,\r | |
39 | IsForward = 0x0001,\r | |
40 | WinChange = 0x0002,\r | |
41 | FromTab = 0x0004\r | |
42 | };\r | |
43 | \end{verbatim}\r | |
44 | \r | |
45 | \wxheading{See also}\r | |
46 | \r | |
47 | \helpref{wxWindow::Navigate}{wxwindownavigate}\\\r | |
48 | \helpref{wxWindow::NavigateIn}{wxwindownavigatein}\r | |
49 | \r | |
50 | \r | |
51 | \latexignore{\rtfignore{\wxheading{Members}}}\r | |
52 | \r | |
53 | \membersection{wxNavigationKeyEvent::wxNavigationKeyEvent}\label{wxnavigationkeyeventctor}\r | |
54 | \r | |
55 | \func{}{wxNavigationKeyEvent}{\void}\r | |
56 | \r | |
57 | \func{}{wxNavigationKeyEvent}{\param{const wxNavigationKeyEvent\&}{ event}}\r | |
58 | \r | |
59 | Constructor.\r | |
60 | \r | |
61 | \membersection{wxNavigationKeyEvent::GetCurrentFocus}\label{wxnavigationkeyeventgetcurrentfocus}\r | |
62 | \r | |
63 | \constfunc{wxWindow*}{GetCurrentFocus}{\void}\r | |
64 | \r | |
65 | Returns the child that has the focus, or NULL.\r | |
66 | \r | |
67 | \membersection{wxNavigationKeyEvent::GetDirection}\label{wxnavigationkeyeventgetdirection}\r | |
68 | \r | |
69 | \constfunc{bool}{GetDirection}{\void}\r | |
70 | \r | |
71 | Returns \true if the navigation was in the forward direction.\r | |
72 | \r | |
73 | \membersection{wxNavigationKeyEvent::IsWindowChange}\label{wxnavigationkeyeventiswindowchange}\r | |
74 | \r | |
75 | \constfunc{bool}{IsWindowChange}{\void}\r | |
76 | \r | |
77 | Returns \true if the navigation event represents a window change (for example, from Ctrl-Page Down\r | |
78 | in a notebook).\r | |
79 | \r | |
80 | \membersection{wxNavigationKeyEvent::IsFromTab}\label{wxnavigationkeyeventisfromtab}\r | |
81 | \r | |
82 | \constfunc{bool}{IsFromTab}{\void}\r | |
83 | \r | |
84 | Returns \true if the navigation event was from a tab key. This is required for proper navigation over radio buttons.\r | |
85 | \r | |
86 | \membersection{wxNavigationKeyEvent::SetCurrentFocus}\label{wxnavigationkeyeventsetcurrentfocus}\r | |
87 | \r | |
88 | \func{void}{SetCurrentFocus}{\param{wxWindow* }{currentFocus}}\r | |
89 | \r | |
90 | Sets the current focus window member.\r | |
91 | \r | |
92 | \membersection{wxNavigationKeyEvent::SetDirection}\label{wxnavigationkeyeventsetdirection}\r | |
93 | \r | |
94 | \func{void}{SetDirection}{\param{bool }{direction}}\r | |
95 | \r | |
96 | Sets the direction to forward if {\it direction} is \true, or backward if \false.\r | |
97 | \r | |
98 | \membersection{wxNavigationKeyEvent::SetFlags}\label{wxnavigationkeyeventsetflags}\r | |
99 | \r | |
100 | \func{void}{SetFlags}{\param{long }{flags}}\r | |
101 | \r | |
102 | Sets the flags.\r | |
103 | \r | |
104 | \membersection{wxNavigationKeyEvent::SetFromTab}\label{wxnavigationkeyeventsetfromtab}\r | |
105 | \r | |
106 | \func{void}{SetFromTab}{\param{bool }{fromTab}}\r | |
107 | \r | |
108 | Marks the navigation event as from a tab key.\r | |
109 | \r | |
110 | \membersection{wxNavigationKeyEvent::SetWindowChange}\label{wxnavigationkeyeventsetwindowchange}\r | |
111 | \r | |
112 | \func{void}{SetWindowChange}{\param{bool }{windowChange}}\r | |
113 | \r | |
114 | Marks the event as a window change event.\r | |
115 | \r |