1

无论如何,当一个人翻阅时,是否有文本选择的“单词”显示在微调器 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
4

1 回答 1

0

如何使用ListBox代替:

Gui, Add, ListBox, R1 vMyList -VScroll, in|the|beginning|was|the|command|line
Gui, Add, UpDown, gDisplay
Gui, Show, , test word display

Exit

Display:
    Gui, Submit, NoHide
    ; MsgBox % MyList
return
于 2013-07-07T19:43:20.453 回答