[REBOL] Re: ListView in REBOL/View
From: gjones05:mail:orion at: 31-Jan-2001 6:12
In its simplist form, text-list can be supplied with one to several items:
view layout [text-list "Hello" "Arpi"]
Text-list can also accept a block of items. In this case, then "data"
signifies that text-list should accept a block:
my-block: ["Hello" "Arpi"]
view layout [text-list data my-block]
The text-list selection is passed via "value".
view layout [
text-list "popcorn" "peanuts" [t1/text: value show t1]
t1: txt 50x20
Text-list can accept many of the same face modifications as other faces.
Check out the "Easy VID" tutorial. You can get to this through the demo
mode of /View. Click on "Rebol.com", then click on "docs", then click on
. It also explains the basic functionality of the text-list face.
Allen Kamp explains some additional functionality at his "FAQ - View Beta":
The Rebol/View User's Guide
may also provide general help, but it does not cover text-list specifically.
There is a similar face called list. It provides additional flexibility,
but I am having trouble finding the reference that I found most help to
explain its use (other than is covered in the references given above).
As far as I know text-list and list do not directly support columns by
default, but columns can be formulated through face modifications. An
excellent example of this is seen in the built-in file request dialog, which
utilizes list. This dialog can be seen by going to console mode, then
typing "request-file" at the prompt. The source for this dialog can be seen
a in the VID source code. You can obtain this code by typing:
write %vid.txt mold system/view/vid
Then search for the word "start-out:". Then look at the layout for out: just
I hope that this information gives you a good start with text-list and text
From: "Varga Árpi"