Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I scroll a TextView to display the text being inserted?

0
Posted

How do I scroll a TextView to display the text being inserted?

0

When inserting text using insert_at_custor(), it may happen that the text inserted surpasses the textview’s current viewport, and requires scrolling. Gustavo Carneiro and Mikoyan wrote in to suggest using the textbuffer’s scroll_to_mark() method, which scrolls to a certain point in the buffer. You can use the get_insert() method to return the current insert position right after inserting if you want to make sure you scroll to the end of the text.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123