[REBOL] Re: Curious results
From: brett::codeconscious::com at: 30-Jul-2001 17:42
> But if I create a file myscript.r and load it
> (either double-clicking it or running 'Rebol
> myscript.r' in a DOS window), then
> I definitely see the text of the title
> in each box in the red-green form.
>
> Any one else getting this result?
Aha. Yes I see it. For scripts, the VIEW function automatically puts the
text of the script title into the main face if there is no text already
defined for the main face. This occurs at "view b" and "view c" - but you
don't see the change. I cannot explain why. You see the change once "view
lay" is executed.
When you paste at the console there is no script title defined therefore
there is no change.
Compare your example with the following - which will not change the text I
have given to the box.:
REBOL [Title: "No Problem!"]
lay: layout [ across b: box "box 1" red c: box "box 2" green]
view b
view c
view lay
If you want to see where the change occurs type the following at the
console:
source view
Brett.