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:
@@ -547,32 +547,20 @@ void wxTextCtrl::GetSelection(long* from, long* to) const
|
||||
GetPeer()->GetSelection( from , to ) ;
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetValue(const wxString& str)
|
||||
void wxTextCtrl::DoSetValue(const wxString& str, int flags)
|
||||
{
|
||||
// optimize redraws
|
||||
if ( GetValue() == str )
|
||||
return ;
|
||||
return;
|
||||
|
||||
GetPeer()->SetStringValue( str ) ;
|
||||
|
||||
if ( m_triggerOnSetValue )
|
||||
if ( (flags & SetValue_SendEvent) && m_triggerOnSetValue )
|
||||
{
|
||||
wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, m_windowId );
|
||||
event.SetString( GetValue() );
|
||||
event.SetEventObject( this );
|
||||
GetEventHandler()->ProcessEvent( event );
|
||||
SendTextUpdatedEvent();
|
||||
}
|
||||
}
|
||||
|
||||
void wxTextCtrl::ChangeValue(const wxString& str)
|
||||
{
|
||||
// optimize redraws
|
||||
if ( GetValue() == str )
|
||||
return ;
|
||||
|
||||
GetPeer()->SetStringValue( str ) ;
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetMaxLength(unsigned long len)
|
||||
{
|
||||
m_maxLength = len ;
|
||||
|
Reference in New Issue
Block a user