BTextView, move cursor position

Hi,
I’m enhancing my simple PO Editor and I call the execution of hunspell for spellchecking the text.
So then I need to update a BTextView content with BTextView.SetText(), but when I call this function the cursor goes to the beginning of the string. I need to place it where it was before calling the function.
Is there an easy way to do so? (a way get the current cursor position for using it with ScrollToOffset)

Thank you for any suggestion

The BeBook covers this. You’ll want GetSelection(), Select(), and ScrollToSelection().

2 Likes

Oh boy! I missed them at all! Thank you very much!