[REBOL] Re: Button Lable
From: philb:upnaway at: 18-Sep-2001 10:16
Hi Graham
The value is actually a block ...
to update the label set the text attribute
below is the code that does what you want ....
rebol []
view layout [
size 200x200
test: choice "action" "print" "view"
[
if equal? first value "print" [ print "print requested" ]
if equal? first value "view" [ print "view requested" ]
test/text: copy first test/texts
show test
]
]
Cheers Phil
-- Originalal Message --
Hi Allen
What's wrong with this then? I want to set the button back
to "action" once the user has selected. I don't want to
leave the selection showing ...
rebol []
view layout [
size 200x200
test: choice "action" "print" "view"
[ if equal? value "print" [ print "print requested" ]
if equal? value "view" [ print "view requested" ]
test/texts: copy ["action" "print" "view"]
show test
]
]
--
Graham Chiu