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

[REBOL] View: How Does This Work?

From: ddalley::idirect::com at: 18-Nov-2001 3:15

Re: the "How To Create Subpanels" tutorial If the default layout direction is BELOW, how does this tutorial's code actually work? There is no ACROSS in 'main's code, but there are two "areas" that are being used - one to the left of the narrow box (which I understand how it works) and one to the right of it (which loses me). I am trying to figure out just why the box and the "panel" area to the right of the box actually end up in their displayed locations. Can anyone help explain what is going on? Experimenting with this problem, I had difficulty using an X,Y point (using AT, OFFSET or ORIGIN, and BELOW & ACROSS) to put a layout where I want it. I have been able to change the X axis point, but the Y never seems to do what I expect of it, overlaying elements at the top of the window. How, then, does one code "put it here"? I also don't understand how 'panels is being used, in these lines of code. button "Panel 1" [panels/pane: panel1 show panels] button "Panel 2" [panels/pane: panel2 show panels] panels: box 220x140 Panels/pane: seems to be defined as a subface (either 'panel1 or 'panel2 - a good use for a toggle, no?), which then gets displayed; and then as a box. How can both definitions of 'panels work? Donald Dalley