Use Bind() instead of Connect() in wxWidgets code
Use more modern function which allows to avoid wxXXXEventHandler() macros use. No real changes.
This commit is contained in:
@@ -122,10 +122,8 @@ wxCalendarCtrl::Create(wxWindow *parent,
|
||||
SetHolidayAttrs();
|
||||
UpdateMarks();
|
||||
|
||||
Connect(wxEVT_LEFT_DOWN,
|
||||
wxMouseEventHandler(wxCalendarCtrl::MSWOnClick));
|
||||
Connect(wxEVT_LEFT_DCLICK,
|
||||
wxMouseEventHandler(wxCalendarCtrl::MSWOnDoubleClick));
|
||||
Bind(wxEVT_LEFT_DOWN, &wxCalendarCtrl::MSWOnClick, this);
|
||||
Bind(wxEVT_LEFT_DCLICK, &wxCalendarCtrl::MSWOnDoubleClick, this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user