[plt-scheme] A Square Canvas

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sun Jul 13 07:47:04 EDT 2008

Is the goal to have a stretchable canvas, but one that always stays
square? For that you'd need to make your own geometry manager, I'm
afraid. This is the relevant part of the docs:



On Sun, Jul 13, 2008 at 6:42 AM, Jens Axel Soegaard
<jensaxel at soegaard.net> wrote:
> Robby Findler skrev:
>> I can't quite figure out what sizes you want (is something backwards
>> somewhere in the below, by chance?) but maybe you're looking for the
>> min-width and min-height methods of the canvas? If you set those and
>> then make the canvas not stretchable, it will be exactly that size.
> Making it non-stretchable and setting the minimum sizes will make the canvas
> quadratic,
> but how can I be sure it will be as big as possible on both normal and wide
> screens?
> /Jens Axel
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.