[REBOL] Re: view problem - updating windows
From: carl::rebol::com at: 26-Apr-2001 9:06
Saw your email arrive, so thought I would take a crack at answering.
To update an element of a layout, you can use SHOW. In order to
refer to it, you will need either 1) a variable to refer to it, or
2) to know it's position in the layout. The first is most common.
out: layout [
img-var: image %img1.jpg
text-var: text "test" 200
img-var/image: load %img2.jpg
text-var/text: "New text here!"
You could also refer to the faces by position with:
out/pane/1/image: load %img2.jpg
In addition, you could refresh the entire layout with:
However, for very large layouts, that can be "expensive".
Note: Buttons have more to them than other types of faces.
For instance, to change the color or text of a button requires
that you change the /colors or /texts fields of the button face.
It all depends on what you are after.