My First Doc Contribution

Dan Shafer dshafer at yahoo.com
Tue Apr 10 22:46:14 UTC 2001


I went to make the changes you suggested. Switching from using an IV to using
the Text's numericValue has an unfortunate side effect: the display of the
Text's value loses its font information every time it is changed. Any
suggestions?

--- Ned Konz <ned at bike-nomad.com> wrote:
> On Sunday 08 April 2001 19:47, Dan Shafer wrote:
> > I have just uploaded to the Swiki my first contribution to Squeak docs, a
> > probably over-long tutorial on how to build a simple project entirely using
> > direct-manipulation Morphic techniques.
> >
> > Please check it out and make appropriate corrections, comments, and
> > feedback. Now that I've made this first conceptual break-through, I plan to
> > do several more such things of increasing complexity.
> >
> > Thoughts and criticisms and suggestions welcome!
> >
> > It's at http://minnow.cc.gatech.edu/squeak/1827
> 
> * PasteUpMorphs are perhaps not the best choice for a container, as they 
> introduce a separate coordinate system and do special event handling.
> 
> Try using a RectangleMorph with drag'n'drop enabled instead.
> 
> * Any Morph can be made drag'n'drop enabled by checking its menu choice. Some
> 
> don't know what to do with dropped Morphs other than their preferred kind, 
> but that's another matter.
> 
> * AlignmentMorphs aren't anything special. For direct manipulation, they 
> don't have any real advantages over anything else (though they come 
> pre-loaded with a table layout, which is their only difference AFAICT from a 
> RectangleMorph). Every Morph has the same alignment abilities as an 
> AlignmentMorph. Just check the "layout/table layout" checkbox then set the 
> options under the "layout/table layout" submenu.
> 
> * The auto-embedding is because your PasteUpMorph has drag'n'drop enabled
> 
> * You didn't have to add an instance variable to the TextMorph. You can go to
> 
> the "text" pane on the viewer and make a script that says:
> 	"CounterDisplay's numericValue increaseBy 1"
> (I set the TextMorph contents to 123 first).
> 
> So you could skip all the stuff about the other instance variable.
> 
> -- 
> Ned Konz
> currently: Stanwood, WA
> email:     ned at bike-nomad.com
> homepage:  http://bike-nomad.com
> 


__________________________________________________
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