[plt-scheme] MrEd: container-size with border style

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Dec 5 14:11:07 EST 2002

At Thu, 5 Dec 2002 13:26:33 -0500 (EST), Doug Orleans wrote:
> Matthew Flatt writes:
>  > At Thu, 5 Dec 2002 12:11:37 -0500 (EST), Doug Orleans wrote:
>  > > How do I figure out what the size of the border is?  (The border
>  > > method seems to be independent of the 'border style.)  How can I even
>  > > tell if a panel% has a border (other than intercepting the style
>  > > instantiation argument)?
>  > 
>  > The `get-client-size' method provides the size of the panel's interior
>  > (i.e., inside the border), while `get-size' provides the size of the
>  > exterior.
> 
> Well, sure, but isn't `container-size' called before the size is
> actually set?

A window always has some size, even if it's not yet the size a geometry
manager wants.

> Erm, actually, isn't it called by `get-size'? 

No.

> I don't feel right calling `get-size' from inside `container-size'...

I promise it's ok, and I'll improve the docs.

Matthew



Posted on the users mailing list.