if ( m_windowStyle & wxTE_MULTILINE )
{
- wxASSERT_MSG(
- !(m_windowStyle & wxTE_PROCESS_ENTER),
- wxT("wxTE_PROCESS_ENTER style is ignored for multiline text controls (they always process it)") );
-
+ // always turn on this style for multi-line controls
m_windowStyle |= wxTE_PROCESS_ENTER;
style |= wxTE_PROCESS_ENTER ;
}
}
}
+void wxTextCtrl::ChangeValue(const wxString& str)
+{
+ // optimize redraws
+ if ( GetValue() == str )
+ return ;
+
+ GetPeer()->SetStringValue( str ) ;
+}
+
void wxTextCtrl::SetMaxLength(unsigned long len)
{
m_maxLength = len ;
GetPeer()->SetSelection( from , to ) ;
}
-bool wxTextCtrl::LoadFile(const wxString& file)
-{
- return wxTextCtrlBase::LoadFile( file );
-}
-
void wxTextCtrl::WriteText(const wxString& str)
{
// TODO: this MPRemoting will be moved into a remoting peer proxy for any command