Restore propagation of EVT_SEARCHCTRL_CANCEL_BTN events to the parent.

This was broken by r72581, add event.Skip() call to the handler for this event
added there.

Also add a handler for this event to the corresponding page of the widgets
sample to be able to test this.

Closes #14799.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-11-06 23:56:21 +00:00
parent 51d2b636e8
commit 639dbb6dd6
2 changed files with 11 additions and 1 deletions

View File

@@ -1176,9 +1176,10 @@ void wxSearchCtrl::RecalcBitmaps()
}
}
void wxSearchCtrl::OnCancelButton( wxCommandEvent& WXUNUSED(event) )
void wxSearchCtrl::OnCancelButton( wxCommandEvent& event )
{
m_text->Clear();
event.Skip();
}
void wxSearchCtrl::OnSetFocus( wxFocusEvent& /*event*/ )