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

[REBOL] Re: Newbie VID question ctd.

From: SunandaDH:aol at: 4-Oct-2003 18:50

Kai:
> Why does the face/color not get set to what I would expect, but
black
> instead? > toggle_start: toggle 60 "Start" mint > [ > face/color: pick [yellow red] face/data > face/texts/1: pick ["Stop" "Start"] face/data > show face > ]
'yellow and 'red aren't being interpreted as RGB tuple numbers -- they are being seen as words in a block. Try this: unview/all view layout [ toggle_start: toggle 60 "Start" "Stop" mint [ face/color: pick reduce [to tuple! yellow to tuple! red] face/data show face ] ] (As Gregg has gently pointed out, the whole pick thing for the text is over-engineered. Just list the texts as part of the toggle -- as above). Sunanda.