Return an empty string from GetValue if the textctrl is set to the
descriptive text git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f24b783af3
commit
4aab34290a
@ -534,7 +534,11 @@ void wxSearchCtrl::LayoutControls(int x, int y, int width, int height)
|
||||
|
||||
wxString wxSearchCtrl::GetValue() const
|
||||
{
|
||||
return m_text->GetValue();
|
||||
wxString value = m_text->GetValue();
|
||||
if (value == m_text->GetDescriptiveText())
|
||||
return wxEmptyString;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
void wxSearchCtrl::SetValue(const wxString& value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user