What Morph to Use?

Alan Kay Alan.Kay at disney.com
Fri Mar 2 12:49:46 UTC 2001


Dan --

If you get an etoy  viewer on any Morph, add an instance variable 
(the default type is numeric) and get a "simple watcher" from the 
"dot menu" in from of the variable's tiles, you will have what you 
need.

Cheers,

Alan

------

At 1:00 AM -0800 3/2/01, Dan Shafer wrote:
>I thought it would be fun to see if I could create a counter with 
>three buttons
>and a readout. (The one I used in my early Smalltalk books and that has been
>done and re-done lots of times.) But I wanted to see if I could do it entirely
>with direct manipulation of Morphs.
>
>The problem is I can't find a built-in Morph that displays a numeric value and
>understands how to add to and subtract from itself. I know how to do this with
>a bit of textual scripting using TextMorph or StringMorph but other
>promising-sounding Morphs (like the tantalizing UpdatingStringMorph) 
>don't seem
>to work.
>
>I know I could create such a Morph and I will if that's the best way to
>approach this but I was sort of hoping to use this as a Tutorial and if the
>user has to build a new Morph as a part of the construction, it's not going to
>seem very entry-level.
>
>Thoughts?
>
>__________________________________________________
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/





More information about the Squeak-dev mailing list