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

[REBOL] Showing list faces

From: carl::cybercraft::co::nz at: 12-Oct-2001 9:43

How do you "show" an individual face in a list? For instance, the following will change the colours of one of the boxes in a list when the button's pressed, but it uses "show box-list", which updates the whole list. How do I update just the box with the changed colour? (I'm assuming this would be faster on large and complex lists.) colors: reduce [red green blue yellow] len: length? colors view layout [box-list: list 200x100 [box 200x25] supply [ if (count <= len) [face/color: pick colors count] ] button "Change" [ change at colors random len random 255.255.255 show box-list ] ] -- Carl Read