projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f767c1
)
use ChangeValue instead of SetValue to avoid bogus EVT_TEXT events
author
Robin Dunn
<robin@alldunn.com>
Tue, 6 Feb 2007 21:14:42 +0000
(21:14 +0000)
committer
Robin Dunn
<robin@alldunn.com>
Tue, 6 Feb 2007 21:14:42 +0000
(21:14 +0000)
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
src/generic/srchctlg.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/srchctlg.cpp
b/src/generic/srchctlg.cpp
index 75f939189239593dfd3f4f5be92026e6eff2a59e..b111b0de8f1a2d0a70a1013fd485e5cf76802b30 100644
(file)
--- a/
src/generic/srchctlg.cpp
+++ b/
src/generic/srchctlg.cpp
@@
-123,7
+123,7
@@
public:
{
if ( GetValue() == m_descriptiveText )
{
-
Set
Value(wxEmptyString);
+
Change
Value(wxEmptyString);
}
m_descriptiveText = text;
@@
-163,7
+163,7
@@
protected:
{
if ( IsEmpty() && !(wxWindow::FindFocus() == this) )
{
-
Set
Value(m_descriptiveText);
+
Change
Value(m_descriptiveText);
SetInsertionPoint(0);
SetForegroundColour(wxStepColour(m_defaultFG, LIGHT_STEP));
}
@@
-174,7
+174,7
@@
protected:
event.Skip();
if ( GetValue() == m_descriptiveText )
{
-
Set
Value(wxEmptyString);
+
Change
Value(wxEmptyString);
SetForegroundColour(m_defaultFG);
}
}