when just setting the descriptive text.
(ported from 2.8 branch)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44390
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
if ( GetValue() == m_descriptiveText )
{
{
if ( GetValue() == m_descriptiveText )
{
- SetValue(wxEmptyString);
+ ChangeValue(wxEmptyString);
}
m_descriptiveText = text;
}
m_descriptiveText = text;
{
if ( IsEmpty() && !(wxWindow::FindFocus() == this) )
{
{
if ( IsEmpty() && !(wxWindow::FindFocus() == this) )
{
- SetValue(m_descriptiveText);
+ ChangeValue(m_descriptiveText);
SetInsertionPoint(0);
SetForegroundColour(wxStepColour(m_defaultFG, LIGHT_STEP));
}
SetInsertionPoint(0);
SetForegroundColour(wxStepColour(m_defaultFG, LIGHT_STEP));
}
event.Skip();
if ( GetValue() == m_descriptiveText )
{
event.Skip();
if ( GetValue() == m_descriptiveText )
{
- SetValue(wxEmptyString);
+ ChangeValue(wxEmptyString);
SetForegroundColour(m_defaultFG);
}
}
SetForegroundColour(m_defaultFG);
}
}