moved DoSetValue() to wxTextCtrlBase instead of having it in almost, but not quite all, derived classes; linking fixes for wxCocoa/wxX11/wxMotif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -778,7 +778,7 @@ wxTextCtrl::~wxTextCtrl()
|
||||
// set/get the value
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxTextCtrl::ChangeValue(const wxString& value)
|
||||
void wxTextCtrl::DoSetValue(const wxString& value, int flags)
|
||||
{
|
||||
if ( IsSingleLine() && (value == GetValue()) )
|
||||
{
|
||||
@@ -792,12 +792,9 @@ void wxTextCtrl::ChangeValue(const wxString& value)
|
||||
{
|
||||
SetInsertionPoint(0);
|
||||
}
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetValue(const wxString& value)
|
||||
{
|
||||
ChangeValue(value);
|
||||
SendTextUpdatedEvent();
|
||||
if ( flags & SetValue_SendEvent )
|
||||
SendTextUpdatedEvent();
|
||||
}
|
||||
|
||||
const wxArrayString& wxTextCtrl::GetLines() const
|
||||
|
Reference in New Issue
Block a user