]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/notifevt.tex
Updated border style names
[wxWidgets.git] / docs / latex / wx / notifevt.tex
... / ...
CommitLineData
1\section{\class{wxNotifyEvent}}\label{wxnotifyevent}
2
3This class is not used by the event handlers by itself, but is a base class
4for other event classes (such as \helpref{wxNotebookEvent}{wxnotebookevent}).
5
6It (or an object of a derived class) is sent when the controls state is being
7changed and allows the program to \helpref{Veto()}{wxnotifyeventveto} this
8change if it wants to prevent it from happening.
9
10\wxheading{Derived from}
11
12\helpref{wxCommandEvent}{wxcommandevent}\\
13\helpref{wxEvent}{wxevent}\\
14\helpref{wxEvtHandler}{wxevthandler}\\
15\helpref{wxObject}{wxobject}
16
17\wxheading{Include files}
18
19<wx/event.h>
20
21\wxheading{Library}
22
23\helpref{wxCore}{librarieslist}
24
25\wxheading{Event table macros}
26
27None
28
29\wxheading{See also}
30
31\helpref{wxNotebookEvent}{wxnotebookevent}
32
33\latexignore{\rtfignore{\wxheading{Members}}}
34
35\membersection{wxNotifyEvent::wxNotifyEvent}\label{wxnotifyeventconstr}
36
37\func{}{wxNotifyEvent}{\param{wxEventType}{ eventType = wxEVT\_NULL}, \param{int}{ id = 0}}
38
39Constructor (used internally by wxWidgets only).
40
41\membersection{wxNotifyEvent::Allow}\label{wxnotifyeventallow}
42
43\func{void}{Allow}{\void}
44
45This is the opposite of \helpref{Veto()}{wxnotifyeventveto}: it explicitly
46allows the event to be processed. For most events it is not necessary to call
47this method as the events are allowed anyhow but some are forbidden by default
48(this will be mentioned in the corresponding event description).
49
50\membersection{wxNotifyEvent::IsAllowed}\label{wxnotifyeventisallowed}
51
52\constfunc{bool}{IsAllowed}{\void}
53
54Returns true if the change is allowed (\helpref{Veto()}{wxnotifyeventveto}
55hasn't been called) or false otherwise (if it was).
56
57\membersection{wxNotifyEvent::Veto}\label{wxnotifyeventveto}
58
59\func{void}{Veto}{\void}
60
61Prevents the change announced by this event from happening.
62
63It is in general a good idea to notify the user about the reasons for vetoing
64the change because otherwise the applications behaviour (which just refuses to
65do what the user wants) might be quite surprising.
66