有没有办法在一个明亮的脚本中添加texteditbox和SetFocus( true )以及他的自动设置active =true?
使用SetFocus,我将焦点设置在textbox上,它的显示是边框和颜色。但是SetFocus(true)不显示光标。我设置了active = true,但有没有办法只将I SetFocus(true)和光标显示在TextEditBox中。
发布于 2019-09-23 23:14:40
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
此外,您还可以添加一些其他内容,如背景等,它将由该事件触发
https://stackoverflow.com/questions/57070563
复制相似问题