startSteppingSelector: Was: Re: Interactive Story (Newbie Question)

tblanchard at mac.com tblanchard at mac.com
Tue Jul 22 17:25:11 UTC 2003


Or you could use Bricks and use the strut/springs layout.

On Monday, July 21, 2003, at 12:28  PM, Scott Wallace wrote:

> Alternatively, to maintain a morph along an edge of its container, or 
> at a corner of its container, or centered within its container, you 
> can use "adhere to edge..." which you'll find in the "extras..." 
> branch of the morph halo menu.
>
> Cheers,
>
>   -- Scott
>
>
> At 11:06 AM -0700 7/21/03, Jack Johnson wrote:
>> Laurence Rozier wrote:
>>> If you define a method:
>>>
>>> keepCentered	self center: owner center
>>>
>>> for Morph, you can then use the following code to keep
>>> it centered within it's owner morph
>>>
>>>
>>> e_EllipseMorph new openInWorld.
>>> e startSteppingSelector: #keepCentered
>>
>> Hey, now I know how to keep the trashcan in the corner!  ;)
>>
>> -Jack
>
>



More information about the Squeak-dev mailing list