added wxTextEntry::DoGetValue() to allow returning empty string if the control currently contains hint text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -577,7 +577,7 @@ void wxSearchCtrl::LayoutControls(int x, int y, int width, int height)
|
||||
// accessors
|
||||
// ---------
|
||||
|
||||
wxString wxSearchCtrl::GetValue() const
|
||||
wxString wxSearchCtrl::DoGetValue() const
|
||||
{
|
||||
wxString value = m_text->GetValue();
|
||||
if (value == m_text->GetDescriptiveText())
|
||||
@@ -585,11 +585,6 @@ wxString wxSearchCtrl::GetValue() const
|
||||
else
|
||||
return value;
|
||||
}
|
||||
void wxSearchCtrl::SetValue(const wxString& value)
|
||||
{
|
||||
m_text->SetValue(value);
|
||||
}
|
||||
|
||||
wxString wxSearchCtrl::GetRange(long from, long to) const
|
||||
{
|
||||
return m_text->GetRange(from, to);
|
||||
|
Reference in New Issue
Block a user