REBOL Programming/request-list

USAGE:Edit

REQUEST-LIST titl alist /offset xy 

DESCRIPTION:Edit

Requests a selection from a list.

REQUEST-LIST is a function value.

ARGUMENTSEdit

  • titl -- (Type: string)
  • alist -- (Type: block)

REFINEMENTSEdit

  • /offset
    • xy -- (Type: any)

SOURCE CODEEdit

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
]
Last modified on 13 November 2012, at 10:51