Flex:在 RichEditableText 控件中设置插入符光标位置

发布于 2024-10-05 14:18:57 字数 129 浏览 1 评论 0原文

是否有一种方法可以在 RichEditableText 控件中设置插入符号位置?

控件的内容可能包含用户必须修复的错误,这些错误通过“下一个/上一个”按钮进行导航,并且在导航过程中,我想将插入符号光标设置到文本中每个错误的末尾。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伪装你 2024-10-12 14:18:58

首先,您需要更改焦点:

textField.setFocus()

然后设置位置:

textField。selectRange()

First you need to change the focus:

textField.setFocus()

Then set the positoin:

textField.selectRange()

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文