virtual bool ProcessEvent(wxEvent& event);
virtual bool SearchEventTable(wxEventTable& table, wxEvent& event);
-
- void Connect( int id, int lastId,
- int eventType,
+
+ // Dynamic association of a member function handler with the event handler, id and event type
+ void Connect( int id, int lastId, wxEventType eventType,
wxObjectEventFunction func,
wxObject *userData = (wxObject *) NULL );
+
+ // Convenience function: take just one id
+ inline void Connect( int id, wxEventType eventType,
+ wxObjectEventFunction func,
+ wxObject *userData = (wxObject *) NULL ) { Connect(id, -1, eventType, func, userData); }
bool SearchDynamicEventTable( wxEvent& event );
// we must include (one of) these files for wxConfigBase::Create
#if defined(__WXMSW__) && defined(wxCONFIG_WIN32_NATIVE)
#ifdef __WIN32__
- #include <wx/msw/iniconf.h>
+ #include <wx/msw/regconf.h>
#else //WIN16
#include <wx/msw/iniconf.h>
#endif
}
void wxEvtHandler::Connect( int id, int lastId,
- int eventType,
+ wxEventType eventType,
wxObjectEventFunction func,
wxObject *userData )
{