New Border Style for a Morph - How?

Rick Zaccone zaccone at bucknell.edu
Sat Aug 14 18:07:59 UTC 2004


After a long absence from Squeak, I'm finally back to using it again.
It's good to be back and doing something other than Java or C++!

I am trying to create a RectangleMorph that has a special border.  I
would like (say) the top and bottom edges to be black and the left and
right edges to be white.  In general, opposite edges should be the
same color.  A simple border is sufficient.  It doesn't need to be
beveled.  It seems that I need to create a subclass of BorderStyle to
do this.

Before charging ahead to do this, I tried to understand how the
existing styles work.  I used

MessageTally tallySends: [RectangleMorph new openInWorld]

Wow!  Lots of stuff going on, and I never see the border being drawn!
I tried other variations and I'm still not closer to understanding how
this works.

Am I on the wrong track with this?  Would someone be kind enough to
point me in the right direction?  It doesn't seem like this should be
very difficult, but I don't feel like I'm getting anywhere.

Rick



More information about the Squeak-dev mailing list