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

[REBOL] Re: change text of button...

From: carl::cybercraft::co::nz at: 24-Dec-2003 22:21

On 29-Jun-03, Denis-Jo wrote:
> Hi > i am a newbie in Rebol... and in english ! Sorry ! > Is it possible to change the text of a button during execution ? for > example, i load a file which contains the text and i would write > this text in a button...
Hi Denis, and welcome to REBOL. Yes, it's easy to change button text. The button's text is held in a block called texts. Change its contents and you'll change the text. ie... view layout [ b: button "Button" button "Change" [ b/texts: ["New"] show b ] ] Also, if there's two strings in the block you can have seperate text for when the button's in or out, like so... view layout [ b: button "Button" button "Change" [ b/texts: ["Out" "In"] show b ] ] Hope that helps. -- Carl Read