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

From: Doug Orleans (dougo at ccs.neu.edu)
Date: Thu Dec 5 13:26:33 EST 2002

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?  Erm, actually, isn't it called by `get-size'?  I don't
feel right calling `get-size' from inside `container-size'...

--dougo at ccs.neu.edu


Posted on the users mailing list.