[Cuis-dev] changing a morph location

Mark Volkmann r.mark.volkmann at gmail.com
Fri Jun 7 12:45:38 PDT 2024


I'm trying to learn how to modify the instance variables of a morph.
I copied a reference to an "Inpect" window to the clipboard and pasted it
in a Workspace.
Then I entered this to see its current location:

inspectorWindow3315334 location

"Print it" output MorphicTranslation(translation 645.0 at 119.0)

Then I attempted to move it by entering this:

inspectorWindow3315334 location: 200 at 200

That did not move the window and in fact locked up my image. Pressing
cmd-period didn't help. I had to force quit the Squeak VM.

I see now that I was supposed to do this:

inspectorWindow3315334 location: (MorphicTranslation withTranslation:
200.0 at 200.0)

I wonder why doing the wrong thing locked up my session.

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240607/d26806f2/attachment.htm>


More information about the Cuis-dev mailing list