[plt-scheme] MrEd - grid alignment

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Mon Dec 1 19:01:53 EST 2003

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.

-- 
Jens Axel Søgaard




Posted on the users mailing list.