Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
CalcuMorph fur dummies
Last updated at 8:42 am UTC on 4 January 2007
Open the World menu (TheWorldMenu class), usually by right click in the world.
Select open and the select browser. Alternative Command -b or drag from Tools Flaps.
http://minnow.cc.gatech.edu/squeak/673 , for learning some more about using the System Browser.
Select the first column or categories panel. Via option click you bring this menu.
IMAGE function cannot find the upload.
Select add item .

In the following, type the category name , "CalculadoraMorphica" or something significant to you

IMAGE function cannot find the upload.

and change the lower pane for you have:

BorderedMorph subclass: #CalcMorph
instanceVariableNames: 'display memoria'
classVariableNames: ''
poolDictionaries: ''
category: 'CalculadoraMorphica'

the third panel is the Method categories (or protocols).
Again option click raise this:

IMAGE function cannot find the upload.
select new category and in the new menu
select initialization
and in the code panel (the lower one)

initialize
"This is the code version of what you do via direct manipulation"
super initialize.
self extent: 57@140.
self color: Color black.
self layoutPolicy: TableLayout new.
self listDirection: #leftToRight.
self wrapDirection: #topToBottom.
self layoutInset: 5@5.

Type CalcMorph new initialize in a workspace for see the "insides" of the object

Working on Morph with click, drag, halos