Selecting the entire contents makes it more convenient for the user to enter
the new value.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73055
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else // not a number at all or out of range
{
m_textCtrl->SetValue(text);
- m_textCtrl->SetSelection(0, -1);
- m_textCtrl->SetInsertionPointEnd();
+ m_textCtrl->SelectAll();
}
}
if ( !DoTextToValue(str, &m_value ) ) // wysiwyg for textctrl
m_value = val;
m_textCtrl->SetValue( str );
- m_textCtrl->SetInsertionPointEnd();
+ m_textCtrl->SelectAll();
m_textCtrl->DiscardEdits();
return true;
}