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

[REBOL] Re: GUI layout

From: henrikmk:gma:il at: 2-Sep-2010 9:42

On Thu, Sep 2, 2010 at 9:34 AM, Emeka <emekamicro-gmail.com> wrote:
> Hello All, > > I know that in REBOL View =A0you can use across word to direct GUI components. > Is there something like layout manager for GUI? I would like to divide my > window into two, one EAST , one WEST or even SOUTH and NORTH.
Not for VID (the standard GUI system built-in). The layout system is very simple, in that the LAYOUT function performs a distribution of the faces that are parsed in the dialect. That means, it places them inside an area and organises them in a face object tree, depending on use of panels, buttons, fields, etc. After that, VID can't do much with it, i.e. it's static, can't be resized or moved without poking the face objects directly, which you've probably already been doing. There are some other tricks, like storing a position for later use, that you can use during layout: view layout [ button "my button" here: guide box red at here button "on the box" ] I'm not sure if that's useful. -- Regards, Henrik Mikael Kristensen