From d4aca4baf04f8b1bf08a69b3ec1b131858d9aa9f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 25 Jan 2007 23:04:44 +0000 Subject: [PATCH] Use ChangeValue instead of SetValue when changing the DescriptiveText in order to not generate unexpected EVT_TEXT events. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/srchctlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 75f9391892..b111b0de8f 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -123,7 +123,7 @@ public: { if ( GetValue() == m_descriptiveText ) { - SetValue(wxEmptyString); + ChangeValue(wxEmptyString); } m_descriptiveText = text; @@ -163,7 +163,7 @@ protected: { if ( IsEmpty() && !(wxWindow::FindFocus() == this) ) { - SetValue(m_descriptiveText); + ChangeValue(m_descriptiveText); SetInsertionPoint(0); SetForegroundColour(wxStepColour(m_defaultFG, LIGHT_STEP)); } @@ -174,7 +174,7 @@ protected: event.Skip(); if ( GetValue() == m_descriptiveText ) { - SetValue(wxEmptyString); + ChangeValue(wxEmptyString); SetForegroundColour(m_defaultFG); } }