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