无论如何,在翻转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
答案 0 :(得分: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