]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/stdevtid.tex
fixed typo in HitTest() docs
[wxWidgets.git] / docs / latex / wx / stdevtid.tex
1 \section{Standard event identifiers}\label{stdevtid}
2
3 wxWidgets defines a special identifier value {\tt wxID\_ANY} which is used in
4 the following two situations:
5
6 \begin{itemize}
7 \item when creating a new window you may specify {\tt wxID\_ANY} to let
8 wxWidgets assign an unused identifier to it automatically
9 \item when installing an event handler using either the event table
10 macros or \helpref{wxEvtHandler::Connect}{wxevthandlerconnect},
11 you may use it to indicate that you want to handle the events
12 coming from any control, regardless of its identifier
13 \end{itemize}
14
15 Another standard special identifier value is {\tt wxID\_NONE}: this is a value
16 which is not matched by any other id.
17
18 wxWidgets also defines a few standard command identifiers which may be used by
19 the user code and also are sometimes used by wxWidgets itself. These reserved
20 identifiers are all in the range between {\tt wxID\_LOWEST} and
21 {\tt wxID\_HIGHEST} and, accordingly, the user code should avoid defining its
22 own constants in this range.
23
24 \begin{verbatim}
25 wxID_LOWEST = 4999,
26
27 wxID_OPEN,
28 wxID_CLOSE,
29 wxID_NEW,
30 wxID_SAVE,
31 wxID_SAVEAS,
32 wxID_REVERT,
33 wxID_EXIT,
34 wxID_UNDO,
35 wxID_REDO,
36 wxID_HELP,
37 wxID_PRINT,
38 wxID_PRINT_SETUP,
39 wxID_PREVIEW,
40 wxID_ABOUT,
41 wxID_HELP_CONTENTS,
42 wxID_HELP_COMMANDS,
43 wxID_HELP_PROCEDURES,
44 wxID_HELP_CONTEXT,
45 wxID_CLOSE_ALL,
46
47 wxID_CUT = 5030,
48 wxID_COPY,
49 wxID_PASTE,
50 wxID_CLEAR,
51 wxID_FIND,
52 wxID_DUPLICATE,
53 wxID_SELECTALL,
54 wxID_DELETE,
55 wxID_REPLACE,
56 wxID_REPLACE_ALL,
57 wxID_PROPERTIES,
58
59 wxID_VIEW_DETAILS,
60 wxID_VIEW_LARGEICONS,
61 wxID_VIEW_SMALLICONS,
62 wxID_VIEW_LIST,
63 wxID_VIEW_SORTDATE,
64 wxID_VIEW_SORTNAME,
65 wxID_VIEW_SORTSIZE,
66 wxID_VIEW_SORTTYPE,
67
68 wxID_FILE1 = 5050,
69 wxID_FILE2,
70 wxID_FILE3,
71 wxID_FILE4,
72 wxID_FILE5,
73 wxID_FILE6,
74 wxID_FILE7,
75 wxID_FILE8,
76 wxID_FILE9,
77
78 // Standard button IDs
79 wxID_OK = 5100,
80 wxID_CANCEL,
81 wxID_APPLY,
82 wxID_YES,
83 wxID_NO,
84 wxID_STATIC,
85 wxID_FORWARD,
86 wxID_BACKWARD,
87 wxID_DEFAULT,
88 wxID_MORE,
89 wxID_SETUP,
90 wxID_RESET,
91 wxID_CONTEXT_HELP,
92 wxID_YESTOALL,
93 wxID_NOTOALL,
94 wxID_ABORT,
95 wxID_RETRY,
96 wxID_IGNORE,
97
98 wxID_UP,
99 wxID_DOWN,
100 wxID_HOME,
101 wxID_REFRESH,
102 wxID_STOP,
103 wxID_INDEX,
104
105 wxID_BOLD,
106 wxID_ITALIC,
107 wxID_JUSTIFY_CENTER,
108 wxID_JUSTIFY_FILL,
109 wxID_JUSTIFY_RIGHT,
110 wxID_JUSTIFY_LEFT,
111 wxID_UNDERLINE,
112 wxID_INDENT,
113 wxID_UNINDENT,
114 wxID_ZOOM_100,
115 wxID_ZOOM_FIT,
116 wxID_ZOOM_IN,
117 wxID_ZOOM_OUT,
118 wxID_UNDELETE,
119 wxID_REVERT_TO_SAVED,
120
121 // System menu IDs (used by wxUniv):
122 wxID_SYSTEM_MENU = 5200,
123 wxID_CLOSE_FRAME,
124 wxID_MOVE_FRAME,
125 wxID_RESIZE_FRAME,
126 wxID_MAXIMIZE_FRAME,
127 wxID_ICONIZE_FRAME,
128 wxID_RESTORE_FRAME,
129
130 // IDs used by generic file dialog (13 consecutive starting from this value)
131 wxID_FILEDLGG = 5900,
132
133 wxID_HIGHEST = 5999
134 \end{verbatim}
135