]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/srchctlg.cpp
Don't send initial event in ctor
[wxWidgets.git] / src / generic / srchctlg.cpp
index 75f939189239593dfd3f4f5be92026e6eff2a59e..b111b0de8f1a2d0a70a1013fd485e5cf76802b30 100644 (file)
@@ -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);
         }
     }