]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/stdevtid.tex
on Linux, not GTK
[wxWidgets.git] / docs / latex / wx / stdevtid.tex
CommitLineData
ab246904
VZ
1\section{Standard event identifiers}\label{stdevtid}
2
3wxWindows defines a special identifier value {\tt wxID\_ANY} which is used in
4the following two situations:
5\begin{itemize}
6 \item when creating a new window you may specify {\tt wxID\_ANY} to let
7 wxWindows assign an unused identifier to it automatically
8 \item when installing an event handler using either the event table
9 macros or \helpref{wxEvtHandler::Connect}{wxevthandlerconnect}
10 you may use it to indicate that you want to handle the events
11 coming from any control, regardless of its identifier
12\end{itemize}
13
14wxWindows also defines a few standard command identifiers which may be used by
15the user code and also are sometimes used by wxWindows itself. These reserved
16identifiers are all in the range between {\tt wxID\_LOWEST} and
17{\tt wxID\_HIGHEST} and, accordingly, the user code should avoid defining its
18own constants in this range.
19
20\begin{verbatim}
21 wxID_LOWEST = 4999,
22
23 wxID_OPEN,
24 wxID_CLOSE,
25 wxID_NEW,
26 wxID_SAVE,
27 wxID_SAVEAS,
28 wxID_REVERT,
29 wxID_EXIT,
30 wxID_UNDO,
31 wxID_REDO,
32 wxID_HELP,
33 wxID_PRINT,
34 wxID_PRINT_SETUP,
35 wxID_PREVIEW,
36 wxID_ABOUT,
37 wxID_HELP_CONTENTS,
38 wxID_HELP_COMMANDS,
39 wxID_HELP_PROCEDURES,
40 wxID_HELP_CONTEXT,
41 wxID_CLOSE_ALL,
42
43 wxID_CUT = 5030,
44 wxID_COPY,
45 wxID_PASTE,
46 wxID_CLEAR,
47 wxID_FIND,
48 wxID_DUPLICATE,
49 wxID_SELECTALL,
50
51 wxID_FILE1 = 5050,
52 wxID_FILE2,
53 wxID_FILE3,
54 wxID_FILE4,
55 wxID_FILE5,
56 wxID_FILE6,
57 wxID_FILE7,
58 wxID_FILE8,
59 wxID_FILE9,
60
61 // Standard button IDs
62 wxID_OK = 5100,
63 wxID_CANCEL,
64 wxID_APPLY,
65 wxID_YES,
66 wxID_NO,
67 wxID_STATIC,
68 wxID_FORWARD,
69 wxID_BACKWARD,
70 wxID_DEFAULT,
71 wxID_MORE,
72 wxID_SETUP,
73 wxID_RESET,
74 wxID_CONTEXT_HELP,
75 wxID_YESTOALL,
76 wxID_NOTOALL,
77 wxID_ABORT,
78 wxID_RETRY,
79 wxID_IGNORE,
80
81 // System menu IDs (used by wxUniv):
82 wxID_SYSTEM_MENU = 5200,
83 wxID_CLOSE_FRAME,
84 wxID_MOVE_FRAME,
85 wxID_RESIZE_FRAME,
86 wxID_MAXIMIZE_FRAME,
87 wxID_ICONIZE_FRAME,
88 wxID_RESTORE_FRAME,
89
90 // IDs used by generic file dialog (13 consecutive starting from this value)
91 wxID_FILEDLGG = 5900,
92
93 wxID_HIGHEST = 5999
94\end{verbatim}
95