Eliminate flashing when writing text, by clearing instead of selecting all.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-06-26 22:15:20 +00:00
parent 8baa46e9bf
commit f1fbff2887

View File

@@ -678,7 +678,10 @@ void wxTextCtrl::DoWriteText(const wxString& value, bool selectionOnly)
{
if ( !selectionOnly )
{
SetSelection(-1, -1);
//SetSelection(-1, -1);
// This eliminates an annoying flashing effect
// when replacing all text.
Clear();
}
::SendMessage(GetHwnd(), EM_REPLACESEL, 0, (LPARAM)valueDos.c_str());