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

[REBOL] Re: Creating Sub-Sub-Panel

From: sanghabum:aol at: 5-Jul-2001 7:34

> i need a little assistance from som view specialists. I have a main Window. > In this main-window there is a subpanel which content depends on menu > choices from the main window. In this subpanel there are buttons which > should control the content of another subpanel right from the first > subpanel. > > I hope anybody will understand this construction or has a better appearance > to this problem > > Perhaps anybody could help me out with a little sample code? >
Hi Thorsetn, An example left over form my "teach-meself panels" afternoon... Hope it illustrates the point. --Colin. ========== rebol [title: "panels within panels"] mainlayout: layout [Banner "main screen" below button "panel A" [mainlayout-panel/pane: sublayoutA show mainlayout-panel ] button "Panel B" [mainlayout-panel/pane: subLayoutB show mainlayout-panel ] return mainlayout-panel: box 400x400 blue ] SubLayoutA: layout [across banner "panel A" button "panel a1" [subLayoutA-Panel/pane: SubLayoutA1 show sublayoutA-Panel ] button "panel a2" [subLayoutA-Panel/pane: SubLayoutA2 show sublayoutA-Panel ] Return SubLayoutA-panel: box 300x300 red ] SubLayoutB: layout [across banner "panel B" button "panel b1" [subLayoutB-Panel/pane: SubLayoutB1 show sublayoutB-Panel ] button "panel b2" [subLayoutB-Panel/pane: SubLayoutB2 show sublayoutB-Panel ] Return SubLayoutB-panel: box 300x300 green ] SubLayoutA1: layout [banner "panel A1"] SubLayoutA2: layout [banner "panel A2"] SubLayoutB1: layout [banner "panel B1"] SubLayoutB2: layout [banner "panel B2"] unview/all view mainlayout