[REBOL] Re: change text of button...
From: greggirwin:mindspring at: 28-Jun-2003 15:18
DJ> i am a newbie in Rebol... and in english ! Sorry !
You're English is fine!
DJ> Is it possible to change the text of a button during execution ? for example,
DJ> i load a file which contains the text and i would write this text in a
Yes, here the FACE word refers to the face the action is attached to,
so you don't have to name it:
view layout [button "Original" [face/text: "New!" show face]]
Here, we set B to refer to the button so we can affect it.
view layout [b: button "Original" [b/text: "New!" show b]]
When you start building dynamic screens, the first thing you'll
probably start doing is separating your VIEW and LAYOUT calls. It's
often easier to call LAYOUT, which creates all the faces, then
change them as necessary, then call VIEW. Alternatively, you can build
your entire layout dynamically (or use COMPOSE against a layout you
have built if that will do all you need) before even calling LAYOUT.
REBOL gives you lots of flexibility.