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

[REBOL] Re: Help with Panes

From: brett:codeconscious at: 22-Dec-2001 18:14

Hi, As Sunanda has pointed out "init_panel" is redefined. Once you fix this though you still need to deal with getting your initial state back. A simplistic approach would be that when the done button is pushed you reverse the changes your other buttons made to that point. Very simplistically you could do this for your current program: (sub_panel is what I called your box within init_panel). button "Done" [ panels/pane: sub_panel/pane: none show panels ] However, this is unlikely to be a concise/maintainable solution when your program takes more shape. I posted it because it solves you immediate question :) You will probably want a more sophisticated approach to manage the panels. Possibly the object! datatype will be handy when you structure your solution. It is also handy to remember that Rebol script can be treated like data so your program can build a "just in time" layout or other things when it needs them. It is a good problem. With your current structure it you could even encode it in a block as a tree and have something automatically build and manage the panels as required. It reminds me a bit of a wizard interface. You could bind the commands to it later. Just speculating :) Brett.