Hi Julia,
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.
For example:
out: layout [
img-var: image %img1.jpg
text-var: text "test" 200
]
view/new out
img-var/image: load %img2.jpg
show img-var
text-var/text: "New text here!"
show text-var
You could also refer to the faces by position with:
out/pane/1/image: load %img2.jpg
show out/pane/1
In addition, you could refresh the entire layout with:
show out
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.
-Carl
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Julia Lipman
> Sent: Thursday, April 26, 2001 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] view problem - updating windows
>
>
>
> Hi, I'm also new to the list - having a great time using REBOL!
>
> I've been having trouble getting an element of a layout to update on its
> own, without clicking a button. The only script I can find that does it
> is rebcam.r, which I can't get to run without errors. Does anyone know of
> an example script or piece of documentation that explains how to do this?
>
>
> thanks!
> Julia Lipman
> Eight, Inc.
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.