1
rebol []
view [
f: field ""
button "focus" on-action [
focus f
]
when [load] on-action [focus f]
]
使用focus
按鈕可以正確設置焦點,但我希望焦點在面板出現時進行設置。我以爲load
觸發器應該這樣做,但它不。如何在佈局中設置初始焦點?
rebol []
view [
f: field ""
button "focus" on-action [
focus f
]
when [load] on-action [focus f]
]
使用focus
按鈕可以正確設置焦點,但我希望焦點在面板出現時進行設置。我以爲load
觸發器應該這樣做,但它不。如何在佈局中設置初始焦點?
正確的觸發使用的是「輸入觸發
when [enter] on-action [focus f]