]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/stdevtid.tex
Inherit wxURL from wxURI, providing assignment, copy construction, comparison, and...
[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 wxWidgets also defines a few standard command identifiers which may be used by
16 the user code and also are sometimes used by wxWidgets itself. These reserved
17 identifiers are all in the range between {\tt wxID\_LOWEST} and
18 {\tt wxID\_HIGHEST} and, accordingly, the user code should avoid defining its
19 own 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,
51
52 wxID_FILE1 = 5050,
53 wxID_FILE2,
54 wxID_FILE3,
55 wxID_FILE4,
56 wxID_FILE5,
57 wxID_FILE6,
58 wxID_FILE7,
59 wxID_FILE8,
60 wxID_FILE9,
61
62 // Standard button IDs
63 wxID_OK = 5100,
64 wxID_CANCEL,
65 wxID_APPLY,
66 wxID_YES,
67 wxID_NO,
68 wxID_STATIC,
69 wxID_FORWARD,
70 wxID_BACKWARD,
71 wxID_DEFAULT,
72 wxID_MORE,
73 wxID_SETUP,
74 wxID_RESET,
75 wxID_CONTEXT_HELP,
76 wxID_YESTOALL,
77 wxID_NOTOALL,
78 wxID_ABORT,
79 wxID_RETRY,
80 wxID_IGNORE,
81
82 // System menu IDs (used by wxUniv):
83 wxID_SYSTEM_MENU = 5200,
84 wxID_CLOSE_FRAME,
85 wxID_MOVE_FRAME,
86 wxID_RESIZE_FRAME,
87 wxID_MAXIMIZE_FRAME,
88 wxID_ICONIZE_FRAME,
89 wxID_RESTORE_FRAME,
90
91 // IDs used by generic file dialog (13 consecutive starting from this value)
92 wxID_FILEDLGG = 5900,
93
94 wxID_HIGHEST = 5999
95 \end{verbatim}
96