git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56719
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// winid and event type
void Connect(int winid,
int lastId,
// winid and event type
void Connect(int winid,
int lastId,
wxObjectEventFunction func,
wxObject *userData = (wxObject *) NULL,
wxEvtHandler *eventSink = (wxEvtHandler *) NULL);
// Convenience function: take just one id
void Connect(int winid,
wxObjectEventFunction func,
wxObject *userData = (wxObject *) NULL,
wxEvtHandler *eventSink = (wxEvtHandler *) NULL);
// Convenience function: take just one id
void Connect(int winid,
wxObjectEventFunction func,
wxObject *userData = (wxObject *) NULL,
wxEvtHandler *eventSink = (wxEvtHandler *) NULL)
{ Connect(winid, wxID_ANY, eventType, func, userData, eventSink); }
// Even more convenient: without id (same as using id of wxID_ANY)
wxObjectEventFunction func,
wxObject *userData = (wxObject *) NULL,
wxEvtHandler *eventSink = (wxEvtHandler *) NULL)
{ Connect(winid, wxID_ANY, eventType, func, userData, eventSink); }
// Even more convenient: without id (same as using id of wxID_ANY)
- void Connect(int eventType,
+ void Connect(wxEventType eventType,
wxObjectEventFunction func,
wxObject *userData = (wxObject *) NULL,
wxEvtHandler *eventSink = (wxEvtHandler *) NULL)
wxObjectEventFunction func,
wxObject *userData = (wxObject *) NULL,
wxEvtHandler *eventSink = (wxEvtHandler *) NULL)
return true;
// propagate the event upwards the window chain and/or to the application
return true;
// propagate the event upwards the window chain and/or to the application
- // object if it wasn't processed at this level
+ // object if it wasn't processed at this level
return TryParent(event);
}
return TryParent(event);
}
}
void wxEvtHandler::Connect( int id, int lastId,
}
void wxEvtHandler::Connect( int id, int lastId,
wxObjectEventFunction func,
wxObject *userData,
wxEvtHandler* eventSink )
wxObjectEventFunction func,
wxObject *userData,
wxEvtHandler* eventSink )