From: Vadim Zeitlin Date: Wed, 10 Jun 1998 17:04:04 +0000 (+0000) Subject: wxTextCtrl::WriteText() now adds it at the end and not 1 position before X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2ad3a34ecc54333aa8bf5bb6a0a54343e0dfe55e wxTextCtrl::WriteText() now adds it at the end and not 1 position before git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@83 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index f43f88964d..f1c4883d44 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -126,7 +126,7 @@ void wxTextCtrl::WriteText( const wxString &text ) if (m_windowStyle & wxTE_MULTILINE) { - gint len = gtk_text_get_length( GTK_TEXT(m_widget) ) - 1; + gint len = gtk_text_get_length( GTK_TEXT(m_widget) ); gtk_editable_insert_text( GTK_EDITABLE(m_widget), text, text.Length(), &len ); } else @@ -137,11 +137,15 @@ void wxTextCtrl::WriteText( const wxString &text ) bool wxTextCtrl::LoadFile( const wxString &WXUNUSED(file) ) { + wxFAIL_MSG("wxTextCtrl::LoadFile not implemented"); + return FALSE; }; bool wxTextCtrl::SaveFile( const wxString &WXUNUSED(file) ) { + wxFAIL_MSG("wxTextCtrl::SaveFile not implemented"); + return FALSE; }; @@ -211,6 +215,7 @@ void wxTextCtrl::SetSelection( const long from, const long to ) void wxTextCtrl::ShowPosition( const long WXUNUSED(pos) ) { + wxFAIL_MSG("wxTextCtrl::ShowPosition not implemented"); }; long wxTextCtrl::GetInsertionPoint(void) const diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index f43f88964d..f1c4883d44 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -126,7 +126,7 @@ void wxTextCtrl::WriteText( const wxString &text ) if (m_windowStyle & wxTE_MULTILINE) { - gint len = gtk_text_get_length( GTK_TEXT(m_widget) ) - 1; + gint len = gtk_text_get_length( GTK_TEXT(m_widget) ); gtk_editable_insert_text( GTK_EDITABLE(m_widget), text, text.Length(), &len ); } else @@ -137,11 +137,15 @@ void wxTextCtrl::WriteText( const wxString &text ) bool wxTextCtrl::LoadFile( const wxString &WXUNUSED(file) ) { + wxFAIL_MSG("wxTextCtrl::LoadFile not implemented"); + return FALSE; }; bool wxTextCtrl::SaveFile( const wxString &WXUNUSED(file) ) { + wxFAIL_MSG("wxTextCtrl::SaveFile not implemented"); + return FALSE; }; @@ -211,6 +215,7 @@ void wxTextCtrl::SetSelection( const long from, const long to ) void wxTextCtrl::ShowPosition( const long WXUNUSED(pos) ) { + wxFAIL_MSG("wxTextCtrl::ShowPosition not implemented"); }; long wxTextCtrl::GetInsertionPoint(void) const