About TableLayout

Stephane Ducasse squeak-dev at lists.squeakfoundation.org
Tue Oct 1 05:54:57 UTC 2002


Hi

The tableLayout seems really good. Good job. I just have a small prob=
lem

When I do the following the rectangleMorph doesn't wrap the buttons i=
t=20
contains.
Any idea why?


| row |
=09row _ RectangleMorph new.
=09row layoutPolicy: TableLayout new.
=09row layoutInset: 1 at 1.
=09row borderWidth: 0.
=09row listDirection: #leftToRight.
=09row hResizing: #spaceFill; vResizing: #shrinkWrap.=09

=09row addMorph:
=09=09(SimpleButtonMorph new
=09=09=09target: self;
=09=09=09label: 'Quit';
=09=09=09actionSelector: #delete;
=09=09=09borderColor: #raised;
=09=09=09borderWidth: 2;
=09=09=09color: color).
=09row addMorph:
=09=09(SimpleButtonMorph new
=09=09=09target:  field;
=09=09=09label: 'New game';
=09=09=09actionSelector: #newGame;
=09=09=09borderColor: #raised;
=09=09=09borderWidth: 2;
=09=09=09color: color).
=09row addMorph:
=09=09(SimpleButtonMorph new
=09=09=09target:  field;
=09=09=09label: 'New game';
=09=09=09actionSelector: #newGame;
=09=09=09borderColor: #raised;
=09=09=09borderWidth: 2;
=09=09=09color: color).

=09row openInWorld

Dr. St=E9phane DUCASSE (ducasse at iam.unibe.ch)=20
http://www.iam.unibe.ch/~ducasse/
  "if you knew today was your last day on earth, what would you do
  different? ... especially if, by doing something different, today
  might not be your last day on earth" Calvin&Hobbes




More information about the Squeak-dev mailing list