Applied #8804 ([wxMac] wxSpinCtrl behaviour)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-09-25 15:25:25 +00:00
parent 7291222828
commit b78ffab030
2 changed files with 4 additions and 0 deletions

View File

@@ -448,6 +448,7 @@ void wxSpinCtrlGenericBase::SetValue(const wxString& text)
{
m_textCtrl->SetValue(text);
m_textCtrl->SetSelection(0, -1);
m_textCtrl->SetInsertionPointEnd();
}
}
@@ -478,6 +479,7 @@ bool wxSpinCtrlGenericBase::DoSetValue(double val)
m_value = val;
str.ToDouble( &m_value ); // wysiwyg for textctrl
m_textCtrl->SetValue( str );
m_textCtrl->SetInsertionPointEnd();
m_textCtrl->DiscardEdits();
return true;
}

View File

@@ -395,6 +395,8 @@ void wxSpinCtrl::SetTextValue(int val)
// select all text
m_text->SetSelection(0, -1);
m_text->SetInsertionPointEnd();
// and give focus to the control!
// m_text->SetFocus(); Why???? TODO.
}