Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
AlignmentMorph newColumn
Last updated at 6:08 pm UTC on 12 September 2016
 StringMorph test openInWorld

 | c |
 c := AlignmentMorph newColumn.
 SystemOrganization categories do:
	[:cat | c addMorph: (StringMorph new contents: cat)].
 ^ c


 StringMorph test2 openInWorld


container := AlignmentMorph newColumn.
container color: Color blue .
container  hResizing: #shrinkWrap; 
     vResizing: #shrinkWrap.

m2 := Morph new color: Color lightGray.
m2 extent: 400@200.

m1 := (StringMorph new contents: 'A title (made with a StringMorph)'; color: Color white).
m1 hResizing: #spaceFill.

container addMorph: m1.
container addMorphBack: m2.
container openInHand



See also
Example where one TextMorph instance is stacked on top of another one