[prev in list] [next in list] [prev in thread] [next in thread] 

List:       racket-users
Subject:    [plt-scheme] Layout and grids with MrEd?
From:       dyoo () hkn ! eecs ! berkeley ! edu (Danny Yoo)
Date:       2006-04-23 2:34:17
Message-ID: Pine.LNX.4.64.0604221851140.23503 () hkn ! eecs ! berkeley ! edu
[Download RAW message or body]

>> I was wondering if there were anything else I could do to reuse the 
>> functionality that *horizontal-panel%* and *vertical-panel%* provide, 
>> or if I'll have to just recode their logic.
>
> I don't think so (though, obviously, it might have been better to have a 
> general grid panel in the first place, so that vertical and horizontal 
> panels are just specializations to a single column or row).

Oh well, that's ok.

I wanted to learn how to do this, so I've updated my GUI notes to include 
examples of containers that extend panel% and cooked up a simple grid-ish 
container called simple-grid-panel%.  It doesn't pay attention to 
alignment, but I'm sure that's something easily fixed.

     http://schemecookbook.org/Cookbook/SimpleGridLayout

Just out of curiosity, I did a few more Google searches just to see if 
anyone else had done this, and picked up:

    http://list.cs.brown.edu/pipermail/plt-scheme/2003-December/004013.html

as well as:

     http://www.codecomments.com/archive282-2004-9-283213.html

so although this is still really specialized, I hope that the code above 
helps someone else out there.  *grin*


Thanks again!


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic