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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user