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

[REBOL] Re: [REBOL]Panel Problems

From: brett:codeconscious at: 27-Jun-2001 17:34

Hi Colin, 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 around: 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 box blue (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: probe system/view/vid/vid-styles/box/edge Which is the same one as probe system/view/vid/vid-styles/image/edge 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 :) ). do http://www.codeconscious.com/rebsite/vid-ancestry.r Brett.