m_bmp(bmp)
{ }
- void SetBitmapLabel(const wxBitmap& label) { m_bmp = label; }
+ void SetBitmapLabel(const wxBitmap& label)
+ {
+ m_bmp = label;
+ InvalidateBestSize();
+ }
// The buttons in wxSearchCtrl shouldn't accept focus from keyboard because
// this would interfere with the usual TAB processing: the user expects
}
}
-void wxSearchCtrl::OnCancelButton( wxCommandEvent& WXUNUSED(event) )
+void wxSearchCtrl::OnCancelButton( wxCommandEvent& event )
{
m_text->Clear();
+ event.Skip();
}
void wxSearchCtrl::OnSetFocus( wxFocusEvent& /*event*/ )