[REBOL] Dynamically Changing the 'text of Button
From: coussement:c:js:mil:be at: 18-Jun-2001 15:18
Hi REBOlian:
A little problem I couldn't resolve right now: how can I dynamically change
the 'text property of a button ?
Let's consider this code:
<snip>
rebol []
view layout [
b: button "First Text"
button "Change" [
b/text: "Second Text"
print ["Button *Change* pressed:" b/text]
show b
]
button "Echo" [
print ["Button *Echo* pressed:" b/text]
]
]
</snip>
I got:
>> do %test.r
Button *Change* pressed: Second Text
Button *Echo* pressed: First Text
And, of course, the 'text of b wasn't updated ;-(
How come ?
chr==