Rebol 程式設計/request-list
外觀
REQUEST-LIST titl alist /offset xy
從列表中請求一個選擇。
REQUEST-LIST 是一個函式值。
- titl -- (型別:字串)
- alist -- (型別:塊)
- /offset
- xy -- (型別:任何)
request-list: func [
"Requests a selection from a list."
titl [string!]
alist [block!] /offset xy /local rslt list-lay
][
list-lay: layout [
origin 10x10
h3 titl
text-list data alist [rslt: value hide-popup]
btn-cancel #"^[" [rslt: none hide-popup]
]
rslt: none
either offset [inform/offset list-lay xy] [inform list-lay]
rslt
]