[QUESTION]bottomCenter
Bob Arning
arning at charm.net
Thu Jul 6 17:39:04 UTC 2000
On Thu, 06 Jul 2000 19:01:29 +0200 Karl Ramberg <karl.ramberg at chello.se> wrote:
>I'm using this code to draw a line to bottomCenter of a morph:
>
>
> "test _ self bottomCenter."
> test _ self center x @ self bottom.
>
>
>
>the variable test should draw to center of the bottom of the
>morph so I tried the method bottomCenter, and got a error, test => nil at nil.
>But when I copied the content of the method and used it as in the code
>above it works.
>Anybody got a clue ?
>
>BTW: leftCenter, topCenter, rightCenter also answers nil at nil.
Hi Karl,
While Morph implements many of the convenient rectangle-like methods (top, topLeft, bottomRight, etc), it does not implement the #xxxxxCenter variety.
Cheers,
Bob
P.S. It never hurts to mention *which* error you got.
More information about the Squeak-dev
mailing list
|