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

[REBOL] Re: Layout in more than one pane

From: cyphre:seznam:cz at: 5-Nov-2001 18:14

Hi MAx, here is simple example of the method I mentioned before: (note that subfaces can be in non-global context as well, but it is up to you) ---------------------snip------------------------------------ my-window: make face [ red-face: make face [color: red size: 50x50 offset: 0x0] blue-face: make face [color: blue size: 50x50 offset: 25x25] edge: none pane: copy [] ] append my-window/pane in my-window 'blue-face append my-window/pane in my-window 'red-face view layout [ box with [pane: my-window] button "switch" [ remove append next my-window/pane first my-window/pane show my-window ] button "rnd color" [ foreach obj my-window/pane [ my-window/:obj/color: random 255.255.255 ] show my-window ] ] --------------------snip-------------------------------- as you can see with this method you can really very easy control subfaces in pane ;) I believe RT will fix the 'hide bug in the next release. regards Cyphre