[REBOL] Re: [REBOL]Panel Problems
From: brett:codeconscious at: 27-Jun-2001 17:34
Edges in View are represented by the object! type of Rebol. All of your
boxes, in this case, share the same object to define their edges. You code
changes this object and bingo all of your boxes instantly reflect that fact.
Quite nice if that is what you want :)
The layout function appears to create a new edge object only if you have
some edge settings as part of your layout specification. So here is one work
panel2: layout [info "panel2"
mybox: box edge  silver box gray box maroon]
For interest, the following demonstrates the same issue in a different way:
view layout [
mybox: box silver
(mybox/edge/size: 3x3 mybox/edge/color: white)
note what happens when you run the following straight afterward
view layout [box]
So the same object is being modified. Here it is:
Which is the same one as
because (I believe) that box inherits the object from image.
Also for interest, I've a program that displays the ancestry (I think it
does anyway :) ).