Clear the search control automatically when it's "Cancel" button is pressed.
This should be the desired behaviour in the vast majority of cases, so do it by default. Replace the useless OnSearchButton() doing nothing with search button events with OnCancelButton() handling cancel button events and clearing the control. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -219,7 +219,7 @@ protected:
|
||||
virtual wxBitmap RenderSearchBitmap( int x, int y, bool renderDrop );
|
||||
virtual wxBitmap RenderCancelBitmap( int x, int y );
|
||||
|
||||
virtual void OnSearchButton( wxCommandEvent& event );
|
||||
void OnCancelButton( wxCommandEvent& event );
|
||||
|
||||
void OnSetFocus( wxFocusEvent& event );
|
||||
void OnSize( wxSizeEvent& event );
|
||||
|
Reference in New Issue
Block a user