如何使用 brightscript 在 TextEditBox 中设置 Automatic active = true?

How to Set Automatic active = true in TextEditBox using brightscript?

有什么方法可以在明亮的脚本中添加 texteditbox 和 SetFocus(true) 及其自动设置 active = true 吗?

我使用 SetFocus 将焦点设置在文本框上,它的显示是边框和颜色。但是 SetFocus(true) 不显示光标。我将 active = true 设置为它的工作,但有什么方法可以让我只设置焦点(真)并且光标显示在 TextEditBox 中。

sub init()
 m.TextEditBox = m.top.FindNode("myEditBox")
 m.TextEditBox.observeFieldScoped("focusedChild", "onBoxFocused")
end sub

sub onBoxFocused(msg as Object)
 box = msg.getROSGNode()
 box.active = box.hasFocus()
end sub

另外,你可以在那里添加一些其他的东西,比如背景等等,它会被那个事件触发