SetInsertionPointEnd should make the insert point visible, as SetInsertionPoint does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1247,18 +1247,7 @@ void wxTextCtrl::SetInsertionPoint( long pos )
|
||||
|
||||
void wxTextCtrl::SetInsertionPointEnd()
|
||||
{
|
||||
wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );
|
||||
|
||||
if ( IsMultiLine() )
|
||||
{
|
||||
GtkTextIter end;
|
||||
gtk_text_buffer_get_end_iter( m_buffer, &end );
|
||||
gtk_text_buffer_place_cursor( m_buffer, &end );
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_editable_set_position( GTK_EDITABLE(m_text), -1 );
|
||||
}
|
||||
SetInsertionPoint(-1);
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetEditable( bool editable )
|
||||
|
Reference in New Issue
Block a user