-1

Is there a method to set the caret position within a RichEditableText control?

The control's contents can contain errors that the user must fix which are navigated though via Next/Previous buttons, and during the navigation I would like to set the caret cursor to the end of each error within the text.

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Even Mien
  • 44,393
  • 43
  • 115
  • 119

1 Answers1

2

First you need to change the focus:

textField.setFocus()

Then set the positoin:

textField.selectRange()

cynicaljoy
  • 2,047
  • 1
  • 18
  • 25