How can I open a SystemWindow with a certain extent?

Rob Withers reefedjib at yahoo.com
Mon Nov 19 16:44:40 UTC 2007


Thanks, Jon.  Works like a champ.

It uses similar methods to those Gary posted, but this is more high-level.

Cheers,
Rob

----- Original Message ----- 
From: "Jon Hylands" <jon at huv.com>
To: "The general-purpose Squeak developers list" 
<squeak-dev at lists.squeakfoundation.org>
Sent: Monday, November 19, 2007 8:11 AM
Subject: Re: How can I open a SystemWindow with a certain extent?


On Mon, 19 Nov 2007 07:58:22 -0800, "Rob Withers" <reefedjib at yahoo.com>
wrote:

> I have a subclass of SystemWindow which I am trying to open with a 
> specific
> extent.  I have a buildWindow method that adds all my widgetry and I have 
> a
> line of code like:
>
>     self extent: 20 @ 50.
>
> When it opens, this extent isn't respected.   How can I do this?

You open it using this method:

#openInWorldExtent:

Note that the extent that is passed in does not include the system window
frame, which is the title bar and sizing handles.

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Raptor (Small Biped Velociraptor Robot)
           http://www.huv.com/blog





More information about the Squeak-dev mailing list