[REBOL] Re: How to refresh a text-list
From: reboler:programmer at: 26-Feb-2002 9:30
Hey guys, why do evertything in two steps when you can do it in one! ;)
To change a text-list:
tell-list: func [
"changes data in 'text-list and resets everything. usage: tell-list text-list-face new-data"
append clear fce/data copy value
fce/sld/data: 0 ; resets slider position
fce/sn: 0 ; resets display position
fce/sld/redrag fce/lc / max 1 length? head fce/lines ;resets slider size
The above works specifically for text-lists. And is (to my belief) a complete function
for all that must change when you change a text-list's data. Am I missing anything?
For most other faces try the following:
tell: func [
"changes text for various faces. usage: tell face text"
append clear fce/text copy value
In a similar vein, when this question went around before, one of the replies mentioned
that a list was better because you could do more with them. However part of the example
given used 'supply. I can't find documentation on 'supply. Can anyone direct me to such?