[REBOL] Re: chance the (dynamic) data
From: SunandaDH:aol at: 5-Sep-2005 5:27
Tim:
> But this is not working as I suspected. Can someone give me a hint?
view layout [
c1: choice "yes" "no"
button [c1/texts: ["true" "false"]
c1/text: "true"
show c1
]
]
three hints:
-- c1/data is the "internal" value -- first data will be the value selected.
The displayed value is in c1/texts. I know it doesn't make obvious sense.
-- changing c1/texts does not change the current label -- strange but true.
Hence the setting of c1/text
-- to get *any* change in a field to show, us 'show
{I suppose you ought to update c1/data too -- just in case any code checks
the current value before the user makes a change]
Sunanda.