diff --git a/docs/doxygen/overviews/eventhandling.h b/docs/doxygen/overviews/eventhandling.h index b3195d5ebe..5ac2d0b692 100644 --- a/docs/doxygen/overviews/eventhandling.h +++ b/docs/doxygen/overviews/eventhandling.h @@ -98,10 +98,11 @@ First define one or more event handlers. They are just simple methods of the class that take as a parameter a reference to an object of a wxEvent-derived class and have no return value (any return information is passed via the argument, which is why it is non-const). -You also need to insert a macro +You also need to insert a line with the macro indicating that the class uses an +event table, like this: @code -wxDECLARE_EVENT_TABLE() +wxDECLARE_EVENT_TABLE(); @endcode somewhere in the class declaration. It doesn't matter where it appears but @@ -132,7 +133,7 @@ private: // obligation to do that; this one is an event handler too: void DoTest(wxCommandEvent& event); - wxDECLARE_EVENT_TABLE() + wxDECLARE_EVENT_TABLE(); }; @endcode diff --git a/interface/wx/event.h b/interface/wx/event.h index 566419f015..e58d756b28 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -4799,7 +4799,7 @@ wxEventType wxNewEventType(); This is mostly used by wxWidgets internally, e.g. @code - wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_BUTTON, wxCommandEvent) + wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CORE, wxEVT_BUTTON, wxCommandEvent); @endcode */ #define wxDECLARE_EXPORTED_EVENT( expdecl, name, cls ) \