无论如何,当一个人翻阅时,是否有文本选择的“单词”显示在微调器 UI 元素中?
每当用户输入向上或向下键时,就会调用 gosub 显示。到目前为止,虽然我只找到了显示索引而不是值的方法......
#a::
words:= ["in","the","beginning","was","the","word"]
Gui, Add, Edit, w111 R1 vw, words3
Gui, Add, UpDown, w22 gdisplay vn Range1-6, 3
Gui, Show, x933 y0, test word display
return
display:
UD:=n
word:=words[UD]
n:=word
;Gui, Submit, NoHide
return