Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[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" fce value ][ append clear fce/data copy value clear fce/picked fce/sld/data: 0 ; resets slider position fce/sn: 0 ; resets display position fce/line-list: none fce/sld/redrag fce/lc / max 1 length? head fce/lines ;resets slider size show fce ] 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" fce value ][ append clear fce/text copy value fce/line-list: none show fce ] 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?