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@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? Morph.png (836 bytes) Download Attachment |
On 5/26/11 4:01 PM, "Chris Muller" <[hidden email]> 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@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 |
In reply to this post by Chris Muller-4
try
container changeTableLayout 2011/5/26 Chris Muller <[hidden email]> I seem to be going crazy because I've done lots of Morphic programming |
In reply to this post by Chris Muller-4
| container item | container := Morph new color: Color yellow; extent: 150@150. container layoutPolicy: TableLayout new;wrapDirection: #rightToLeft. item := Morph new. container addMorph: item.
container openInHand Karl On Thu, May 26, 2011 at 9:01 PM, Chris Muller <[hidden email]> wrote: I seem to be going crazy because I've done lots of Morphic programming |
| container item | container := Morph new color: Color yellow; extent: 150@150. container layoutPolicy: TableLayout new;wrapDirection: #rightToLeft;cellPositioning: #rightCenter;listCentering:#center.
item := Morph new. container addMorph: item. container openInHand Karl On Thu, May 26, 2011 at 10:45 PM, karl ramberg <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |