]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/stdevtid.tex
invalid size is (size_t)-1, not 0xffffffff; stream returned by GetInputstream() must...
[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
dadacffc
VZ
15Another standard special identifier value is {\tt wxID\_NONE}: this is a value
16which is not matched by any other id.
17
fc2171bd
JS
18wxWidgets also defines a few standard command identifiers which may be used by
19the user code and also are sometimes used by wxWidgets itself. These reserved
ab246904
VZ
20identifiers are all in the range between {\tt wxID\_LOWEST} and
21{\tt wxID\_HIGHEST} and, accordingly, the user code should avoid defining its
22own 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,
40f51262
VZ
42 wxID_HELP_INDEX,
43 wxID_HELP_SEARCH,
ab246904
VZ
44 wxID_HELP_COMMANDS,
45 wxID_HELP_PROCEDURES,
46 wxID_HELP_CONTEXT,
47 wxID_CLOSE_ALL,
48
49 wxID_CUT = 5030,
50 wxID_COPY,
51 wxID_PASTE,
52 wxID_CLEAR,
53 wxID_FIND,
54 wxID_DUPLICATE,
55 wxID_SELECTALL,
e9f4f51d
JS
56 wxID_DELETE,
57 wxID_REPLACE,
58 wxID_REPLACE_ALL,
59 wxID_PROPERTIES,
60
61 wxID_VIEW_DETAILS,
62 wxID_VIEW_LARGEICONS,
63 wxID_VIEW_SMALLICONS,
64 wxID_VIEW_LIST,
65 wxID_VIEW_SORTDATE,
66 wxID_VIEW_SORTNAME,
67 wxID_VIEW_SORTSIZE,
68 wxID_VIEW_SORTTYPE,
ab246904
VZ
69
70 wxID_FILE1 = 5050,
71 wxID_FILE2,
72 wxID_FILE3,
73 wxID_FILE4,
74 wxID_FILE5,
75 wxID_FILE6,
76 wxID_FILE7,
77 wxID_FILE8,
78 wxID_FILE9,
79
80 // Standard button IDs
81 wxID_OK = 5100,
82 wxID_CANCEL,
83 wxID_APPLY,
84 wxID_YES,
85 wxID_NO,
86 wxID_STATIC,
87 wxID_FORWARD,
88 wxID_BACKWARD,
89 wxID_DEFAULT,
90 wxID_MORE,
91 wxID_SETUP,
92 wxID_RESET,
93 wxID_CONTEXT_HELP,
94 wxID_YESTOALL,
95 wxID_NOTOALL,
96 wxID_ABORT,
97 wxID_RETRY,
98 wxID_IGNORE,
99
e9f4f51d
JS
100 wxID_UP,
101 wxID_DOWN,
102 wxID_HOME,
103 wxID_REFRESH,
104 wxID_STOP,
105 wxID_INDEX,
106
107 wxID_BOLD,
108 wxID_ITALIC,
109 wxID_JUSTIFY_CENTER,
110 wxID_JUSTIFY_FILL,
111 wxID_JUSTIFY_RIGHT,
112 wxID_JUSTIFY_LEFT,
113 wxID_UNDERLINE,
114 wxID_INDENT,
115 wxID_UNINDENT,
116 wxID_ZOOM_100,
117 wxID_ZOOM_FIT,
118 wxID_ZOOM_IN,
119 wxID_ZOOM_OUT,
120 wxID_UNDELETE,
121 wxID_REVERT_TO_SAVED,
122
ab246904
VZ
123 // System menu IDs (used by wxUniv):
124 wxID_SYSTEM_MENU = 5200,
125 wxID_CLOSE_FRAME,
126 wxID_MOVE_FRAME,
127 wxID_RESIZE_FRAME,
128 wxID_MAXIMIZE_FRAME,
129 wxID_ICONIZE_FRAME,
130 wxID_RESTORE_FRAME,
131
132 // IDs used by generic file dialog (13 consecutive starting from this value)
133 wxID_FILEDLGG = 5900,
134
135 wxID_HIGHEST = 5999
136\end{verbatim}
137