$szTitle = "wxnotifyevent"; include "./_header.inc"; ?>
this class is not used by the event handlers by itself, but is a base class for other event classes (such as wxnotebookevent).
it (or an object of a derived class) is sent when the controls state is being changed and allows the program to veto() this change if it wants to prevent it from happening.
derived from
wxcommandevent
wxevent
wxevthandler
wxobject
include files
<wx/event.h>
event table macros
none
see also
members
wxnotifyevent::wxnotifyevent
wxnotifyevent::allow
wxnotifyevent::isallowed
wxnotifyevent::veto
wxnotifyevent(wxeventtype eventtype = wxevt_null, int id = 0)
constructor (used internally by wxwidgets only).
void allow()
this is the opposite of veto(): it explicitly allows the event to be processed. for most events it is not necessary to call this method as the events are allowed anyhow but some are forbidden by default (this will be mentioned in the corresponding event description).
bool isallowed() const
returns true if the change is allowed (veto() hasn't been called) or false otherwise (if it was).
void veto()
prevents the change announced by this event from happening.
it is in general a good idea to notify the user about the reasons for vetoing the change because otherwise the applications behaviour (which just refuses to do what the user wants) might be quite surprising.
include "./_footer.inc"; ?>