making a window of fixed size

Ned Konz ned at bike-nomad.com
Wed Feb 20 00:36:34 UTC 2002


On Tuesday 19 February 2002 04:01 pm, Craig Latta wrote about making windows 
fixed size:

> 	How should I do this and how could I have learned about it?

You can override extent: and initialize if you wish:

extent: newExtent
     super extent: ((newExtent min: self maximumExtent) max: self 
minimumExtent)

initialize
	self minimumExtent: 200 at 200; maximumExtent: 200 at 200.
	super initialize.
	self extent: 200 at 200.

I found out about this by browsing senders of minimumExtent and noticing that 
there are overrides of extent:.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com



More information about the Squeak-dev mailing list