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

GUI layout

 [1/8] from: emekamicro:gmai:l at: 2-Sep-2010 8:34


Hello All, I know that in REBOL View you 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. Regards, Emeka

 [2/8] from: henrikmk:g:mail 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

 [3/8] from: dhsunanda:gm:ail at: 2-Sep-2010 9:05


Emeka:
> I know that in REBOL View you 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.
Subpanels might be partially helpful here: http://www.rebol.com/how-to/subpanels.html Sunanda

 [4/8] from: petr:krenzelok:seznam:cz at: 2-Sep-2010 10:39


Hi, I am not sure what you mean by a "layout manager" - do you mean IDE? Sadly, there's no IDE for REBOL GUI. As for dividing a window, IIRC default VID does not contain a splitter style. RebGUI does contain one, resizable, but no direct experience on my part either. I suggest you to do some experiments with panels. Best regards, -pekr- Dne 2.9.2010 9:34, Emeka napsal(a):

 [5/8] from: emekamicro:gma:il at: 2-Sep-2010 11:13


Thanks Henrik, Sunanda and Petr. Regards, Emeka 2010/9/2 Petr Krenzelok <petr.krenzelok-seznam.cz>

 [6/8] from: gerardcote::gmail at: 2-Sep-2010 8:37


Hi Emeka,
> Dne 2.9.2010 9:34, Emeka napsal(a): > > Hello All, > > > > I know that in REBOL View you 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. > > > > Regards, > > Emeka > >
For real work I suggest you to go directly at the RebGUI entry below to see what it can offer to you Launch REBOL/View in console mode and enter the following 2 lines of code. do http://www.dobeash.com/RebGUI/get-rebgui.r do view-root/public/www.dobeash.com/RebGUI/tour.r Other reference sources about RebGUI can be found at the end of this post. The above extract come from these sources. I simply wanted to begin by what I found to be the most useful to you ... For your general information about VID may be these other scripts can be useful to you too. ================================================================== A layout mini-editor from Carl S.: http://www.mail-archive.com/list-rebol.com/msg07771.html A script demo for getting a dual columns layout using across : http://www.rebol.org/view-script.r?script=dual-col.r&sid=kd85hy Different ways to get a layout (Static or dynamic) : http://onlamp.com/pub/a/onlamp/2003/10/30/rebol.html The other information I found for you is from the official Library serach engine found here : http://www.rebol.org/search.r Trying to get some info from "Carl layout editor" got me these results below : REBOL/Layoutlayout.r<http://www.rebol.org/view-script.r?script=layout.r&sid=ppfb454gz> v:0.1.7 35.7 KB 13 Mar 2003Visual Layout Editor author: Carl SassenrathGraphical Layout Editorlayed.r<http://www.rebol.org/view-script.r?script=layed.r&sid=ppfb454gz> v:1.0.1 1.6 KB 13 Mar 2003Your basic 1K REBOL graphical object layout editor. Not many features, but a good example of how to drag faces and show nubs. author: Carl SassenrathREBOL/Layoutlayout-1.8.r<http://www.rebol.org/view-script.r?script=layout-1.8.r&sid=ppfb454gz> discussion <http://www.rebol.org/discussion.r?script=layout-1.8.r>v:0.1.8 37.1 KB 13 Mar 2003Visual Layout Editor, now accepts more than 6 layouts author: Carl Sassenrath, Ammon Johnson This time, using the keyword "panel" as the search keyword I got : RebGUI span Examplerebgui-sizing.r<http://www.rebol.org/view-script.r?script=rebgui-sizing.r&sid=rcyc183kn> documentation <http://www.rebol.org/documentation.r?script=rebgui-sizing.r> v:1.0.0 1.9 KB 5 Jun 2007RebGUI tutorial; display images, with widget span and window resizing author: Brian Tiffin While speaking of RebGUI, I found these widgets in their widgets reference documentation (http://www.dobeash.com/RebGUI/widgets.html) that could be useful to you : 28- Scroll-panel : http://www.dobeash.com/RebGUI/widgets.html#section-28 32- Splitter : http://www.dobeash.com/RebGUI/widgets.html#section-32 This old discussion thread below can also be useful to you : =========================================== http://www.mail-archive.com/rebol-bounce-rebol.com/msg03229.html And finally - but not the least - here are some real demos about what can do RebGUI for you : =================================================================== Simply launch REBOL/View in console mode and type the following at the prompt : do http://www.dobeash.com/RebGUI/get-rebgui.r do view-root/public/www.dobeash.com/RebGUI/tour.r These instructions come from the following extract (taken from http://community.livejournal.com/rebol) : ------------------------------------------------------------- Carl's Blog Alert <http://community.livejournal.com/rebol/70435.html> Fri, 23 Jun 2006 19:50:49 *RebGUI - REBOL/View Graphical User Interface* RebGUI is a good way to build user interfaces in REBOL. If you've not tried it yet, you should. RebGUI takes many of the best concepts of VID (the visual interface dialect) and provides a useful, smart, clean way to quickly build graphical user interfaces in REBOL. To see a quick tour of RebGUI click on it in the Demos folder of the REBOL Viewtop or type this URL into your REBOL/View GoTo box (or just DO it in the console): http://www.rebol.com/rebgui-demo.r The above script simply does this: do http://www.dobeash.com/RebGUI/get-rebgui.r do view-root/public/www.dobeash.com/RebGUI/tour.r I should mettion that Ashley and his team at Dobeash Software have done a nice job documenting RebGUI. Here's the main page where you can get started: \in RebGUI Home Page /in For me, RebGUI is exactly the kind of thing I've wanted to see done in REBOL. Remember, VID was/is a prototype. Back in 2001 I expected VID to be replaced with something better in less than a year. VID had some unique and cool ideas (e.g. dialected interface specification, datatyped property dispatch, extensible), but also more than a few quirks and loose ends. Some of you have asked, "Is it ok to use RebGUI for my REBOL applications?" I say yes! Use what works best for your needs and requirements. For many types of applications, I think RebGUI is a good choice. *More here:* http://www.rebol.net/article/0280.html Even if I don't really program much using REBOL or anything else for now I try to keep myself well informed ... for what value it can really have! ======================================================================================================= Regards, Gerard

 [7/8] from: Steven:Oldner:LA:GOV at: 2-Sep-2010 7:46


G=E9rard, Thank you very much! I have seen REBGui but have not used it. Your information puts it into perspective. Steve Oldner

 [8/8] from: emekamicro:gmai:l at: 2-Sep-2010 15:23


G=E9rard Thanks a lot .... I will check them out. Emeka On Thu, Sep 2, 2010 at 1:46 PM, Steve Oldner <Steven.Oldner-la.gov> wrote: