[REBOL] Layout in more than one pane
From: ammonjohnson:y:ahoo at: 31-Oct-2001 19:42
Hi,
I have been playing with panes & I have discovered some interesting behavior. If you
try to dynamically create two panes that are in essence the same, but need to function
seperately (as copies?). How do I copy a layout? I have tried:
a: layout [
b: box
c: box
]
d: [box "hello"]
b/pane: copy layout d
c/pane: copy layout d
ERROR!
** Script Error: copy expected value argument of type: series port bitset
** Where: make-win
** Near: new-bar/pane: copy layout/offset bar-content 0x0
so then I tried:
a: layout [
b: box
c: box
]
d: layout [box "hello"]
b/pane: copy d
c/pane: copy d
ERROR! Face in more than one pane.
This also returns face in more than one pane:
a: layout [
b: box
c: box
]
d: to-block layout [box "hello"]
e: copy d
b/pane: do d
c/pane: do e
Any thoughts? Has anyone dealt with this before?
Thanks!!
Ammon