]> git.saurik.com Git - wxWidgets.git/commit
Clear the search control automatically when it's "Cancel" button is pressed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 20:35:10 +0000 (20:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 20:35:10 +0000 (20:35 +0000)
commite5eff438331d2b56b2770e1e369b03e843426a7f
tree6dae1af67123d10591481a4308b5df44acef85ac
parent274e4265a85e0de5a5a7ad7ed8038ddbf0dbeecb
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
include/wx/generic/srchctlg.h
src/generic/srchctlg.cpp