[REBOL] Re: Understanding LIST better
From: antonr:iinet:au at: 29-Jul-2003 10:26
Hello David,
my-list: list gray list-size list-layout-blk data list-data supply [
; count is the row number
; index is the face number
row: pick head l-block count
but/text: all [row pick row 1]
fld/text: all [row pick row 2]
]
(index is also like the column, assuming your list layout goes across.)
The code above is from this example:
http://www.lexicon.net/anton/rebol/gui/demo-vid-list-scroller.r
You can see that the text is not the only facet you can change.
You could also do:
value: all [row pick row 1]
but/font/color: any [all [negative? value red] black]
and/or set the background color with:
but/color: all [negative? value maroon] ; (none is transparent)
Anton.