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

[REBOL] Re: Curious results

From: brett:codeconscious at: 30-Jul-2001 14:35

Hi Doug,
> 1. Why does 'view lay' show 'Problem!' inside each > box?
I don't see that.
> 2. What happens to red and green for b and c? > > ;example 2 > REBOL [Title: "Problem!"] > lay: layout [ across b: box red c: box green] > view lay > view b > view c
They are there - you just cannot see them because they are not visible to you. Try this: lay: layout [ across b: box red c: box green] view lay print ["b/offset:" b/offset "c/offset" c/offset] c/offset: 0x0 view c Now I just cheated, because if you set the offset of b like I did for c you'll still not see the red box. I believe that VIEW establishes a relationship between lay, b, and c through the field "parent-face" of b and c when you execute the line "view lay". I really don't know how it works but I do think it is intimately involved with why you don't see the red box when you "view b" at a later time. Brett.