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
This commit is contained in:
@@ -126,7 +126,7 @@ void wxTextCtrl::WriteText( const wxString &text )
|
|||||||
|
|
||||||
if (m_windowStyle & wxTE_MULTILINE)
|
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 );
|
gtk_editable_insert_text( GTK_EDITABLE(m_widget), text, text.Length(), &len );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -137,11 +137,15 @@ void wxTextCtrl::WriteText( const wxString &text )
|
|||||||
|
|
||||||
bool wxTextCtrl::LoadFile( const wxString &WXUNUSED(file) )
|
bool wxTextCtrl::LoadFile( const wxString &WXUNUSED(file) )
|
||||||
{
|
{
|
||||||
|
wxFAIL_MSG("wxTextCtrl::LoadFile not implemented");
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool wxTextCtrl::SaveFile( const wxString &WXUNUSED(file) )
|
bool wxTextCtrl::SaveFile( const wxString &WXUNUSED(file) )
|
||||||
{
|
{
|
||||||
|
wxFAIL_MSG("wxTextCtrl::SaveFile not implemented");
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -211,6 +215,7 @@ void wxTextCtrl::SetSelection( const long from, const long to )
|
|||||||
|
|
||||||
void wxTextCtrl::ShowPosition( const long WXUNUSED(pos) )
|
void wxTextCtrl::ShowPosition( const long WXUNUSED(pos) )
|
||||||
{
|
{
|
||||||
|
wxFAIL_MSG("wxTextCtrl::ShowPosition not implemented");
|
||||||
};
|
};
|
||||||
|
|
||||||
long wxTextCtrl::GetInsertionPoint(void) const
|
long wxTextCtrl::GetInsertionPoint(void) const
|
||||||
|
@@ -126,7 +126,7 @@ void wxTextCtrl::WriteText( const wxString &text )
|
|||||||
|
|
||||||
if (m_windowStyle & wxTE_MULTILINE)
|
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 );
|
gtk_editable_insert_text( GTK_EDITABLE(m_widget), text, text.Length(), &len );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -137,11 +137,15 @@ void wxTextCtrl::WriteText( const wxString &text )
|
|||||||
|
|
||||||
bool wxTextCtrl::LoadFile( const wxString &WXUNUSED(file) )
|
bool wxTextCtrl::LoadFile( const wxString &WXUNUSED(file) )
|
||||||
{
|
{
|
||||||
|
wxFAIL_MSG("wxTextCtrl::LoadFile not implemented");
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool wxTextCtrl::SaveFile( const wxString &WXUNUSED(file) )
|
bool wxTextCtrl::SaveFile( const wxString &WXUNUSED(file) )
|
||||||
{
|
{
|
||||||
|
wxFAIL_MSG("wxTextCtrl::SaveFile not implemented");
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -211,6 +215,7 @@ void wxTextCtrl::SetSelection( const long from, const long to )
|
|||||||
|
|
||||||
void wxTextCtrl::ShowPosition( const long WXUNUSED(pos) )
|
void wxTextCtrl::ShowPosition( const long WXUNUSED(pos) )
|
||||||
{
|
{
|
||||||
|
wxFAIL_MSG("wxTextCtrl::ShowPosition not implemented");
|
||||||
};
|
};
|
||||||
|
|
||||||
long wxTextCtrl::GetInsertionPoint(void) const
|
long wxTextCtrl::GetInsertionPoint(void) const
|
||||||
|
Reference in New Issue
Block a user