[plt-scheme] Re: MrEd - grid alignment
Hi Jens,
I just did what you suggested, not even as I difficult as I thought.
Jens Axel Søgaard wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Guenther Schmidt wrote:
>
>> Hi,
>>
>> how do I align several items in a grid (table) layout?
>
> ...
>
>> This unfortunately won't align to agrid though.
>
>
> Two summers ago I had the same problem.
> I was making a little "Magical Square" program.
>
> <http://www.scheme.dk/tmp/magi.scm>
>
> In the interesting parts are squarify and
> traverse at the bottom of the file.
>
> Notice that I make all the buttons first
> (all of different sizes), then find the
> maximum of all heigths and widths, and then
> finally change all the sizes to be the same.
>
> Since the explanation in the program
> is in danish:
>
> Swap two numbers by clicking on the
> first then the second. Make a magical
> square by arranging the numbers such that
> the sums in every row, column and diagonal
> are the same number.
>