1
rebol []

view [ 
    f: field "" 
    button "focus" on-action [
        focus f
    ]
    when [load] on-action [focus f] 
]

使用focus按钮可以正确设置焦点,但我希望在面板出现时设置焦点。我原以为load触发器应该这样做,但事实并非如此。

4

1 回答 1

0

The correct trigger to use is the 'enter trigger

when [enter] on-action [focus f] 
于 2014-04-25T01:07:01.737 回答