[squeak-dev] morph layout
Edgar J. De Cleene
edgardec2005 at gmail.com
Thu May 26 20:19:11 UTC 2011
On 5/26/11 4:01 PM, "Chris Muller" <ma.chris.m at gmail.com> wrote:
> I seem to be going crazy because I've done lots of Morphic programming
> in the past. But, for the life of me, I cannot seem to get layout to
> work the way I remember it always working. I want rightCenter but
> can't get anything but topLeft.
>
> | container item |
> container := Morph new color: Color yellow; extent: 150 at 150;
> cellPositioning: #rightCenter.
> item := Morph new.
> item cellPositioning: #rightCenter.
> container addMorph: item.
> container openInHand
>
> I always thought cellPositioning was set on the _container_, but the
> comment says on the "receiver", so even when I set it on both it is
> still placed at the top left.
>
> What am I missing here?
You should see Cuis Morphic-Layouts, can't tell if solve your problem but
sure deserves your time.
Edgar
More information about the Squeak-dev
mailing list
|