InvalidateBestSize();
}
+ virtual wxWindow* GetMainWindowOfCompositeControl()
+ {
+ return m_search;
+ }
// provide access to the base class protected methods to wxSearchCtrl which
// needs to forward to them
// is really no reason for it to be able to get focus from keyboard.
virtual bool AcceptsFocusFromKeyboard() const { return false; }
+ virtual wxWindow* GetMainWindowOfCompositeControl()
+ {
+ return m_search;
+ }
+
protected:
wxSize DoGetBestSize() const
{
}
}
-void wxSearchCtrl::OnCancelButton( wxCommandEvent& WXUNUSED(event) )
+void wxSearchCtrl::OnCancelButton( wxCommandEvent& event )
{
m_text->Clear();
+ event.Skip();
}
void wxSearchCtrl::OnSetFocus( wxFocusEvent& /*event*/ )