LayoutMorph ?
Dave Mason
dmason at sarg.ryerson.ca
Tue Nov 15 14:30:41 UTC 2005
Thanks for the hint. I've created the very short LayoutMorph below that
does exactly what I wanted. But obviously TableLayout is a very good
alternative, and the tutorial is helpful.
I wonder if SystemWindow needs refactoring... it's #addMorph:frame: is
certainly not this simple.
../Dave
'From Squeak3.7beta of ''1 April 2004'' [latest update: #5868] on 15 November 2005 at 9:21:37 am'!
Morph subclass: #LayoutMorph
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'DVM-MVC'!
!LayoutMorph methodsFor: 'as yet unclassified' stamp: 'dvm 11/15/2005 08:26'!
addMorph: aMorph frame: aRectangle
self addMorph: aMorph fullFrame: (LayoutFrame fractions: aRectangle)! !
!LayoutMorph methodsFor: 'as yet unclassified' stamp: 'dvm 11/15/2005 08:29'!
initialize
super initialize.
self layoutPolicy: ProportionalLayout new! !
More information about the Squeak-dev
mailing list
|