karl.ramberg at chello.se
Tue Nov 15 18:43:04 UTC 2005
Dave Mason wrote:
>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.
And it's doing some quite unexpected stuff to morphs you add to
SystemWindows, like change their
color and border.
>'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'!
> super initialize.
> self layoutPolicy: ProportionalLayout new! !
More information about the Squeak-dev