diff --git a/include/wx/generic/datectrl.h b/include/wx/generic/datectrl.h index 09d340739d..4276ff853a 100644 --- a/include/wx/generic/datectrl.h +++ b/include/wx/generic/datectrl.h @@ -20,7 +20,7 @@ class WXDLLIMPEXP_FWD_ADV wxCalendarCtrl; class WXDLLIMPEXP_FWD_ADV wxCalendarComboPopup; class WXDLLIMPEXP_ADV wxDatePickerCtrlGeneric - : public wxCompositeWindowSettersOnly< wxNavigationEnabled > + : public wxCompositeWindow< wxNavigationEnabled > { public: // creating the control @@ -80,7 +80,6 @@ private: void OnText(wxCommandEvent &event); void OnSize(wxSizeEvent& event); - void OnFocus(wxFocusEvent& event); #ifdef __WXOSX_COCOA__ virtual void OSXGenerateEvent(const wxDateTime& WXUNUSED(dt)) wxOVERRIDE { } diff --git a/src/generic/datectlg.cpp b/src/generic/datectlg.cpp index 767a7454df..d5abccfd3a 100644 --- a/src/generic/datectlg.cpp +++ b/src/generic/datectlg.cpp @@ -296,7 +296,6 @@ wxEND_EVENT_TABLE() wxBEGIN_EVENT_TABLE(wxDatePickerCtrlGeneric, wxDatePickerCtrlBase) EVT_TEXT(wxID_ANY, wxDatePickerCtrlGeneric::OnText) EVT_SIZE(wxDatePickerCtrlGeneric::OnSize) - EVT_SET_FOCUS(wxDatePickerCtrlGeneric::OnFocus) wxEND_EVENT_TABLE() #ifndef wxHAS_NATIVE_DATEPICKCTRL @@ -485,12 +484,4 @@ void wxDatePickerCtrlGeneric::OnText(wxCommandEvent &ev) m_popup->SendDateEvent(dt); } - -void wxDatePickerCtrlGeneric::OnFocus(wxFocusEvent& WXUNUSED(event)) -{ - m_combo->SetFocus(); -} - - #endif // wxUSE_DATEPICKCTRL -