Morphic relative placement?

Brian Greskamp greskamp at uiuc.edu
Fri Apr 7 15:52:32 UTC 2006


I'm building a schematic editor where I need to control the relative 
placement of a submorph inside its owner morph.  In the view, I have a 
morph representing a circuit.  Each CircuitMorph has arbitrarily many 
child CircuitMorphs.  In the model, each Circuit stores a fixed point 
position relative to it's parent Circuit's upper left corner.

I tried to render the view doing the naive thing; each CircuitMorph 
does: "self position: model position".  The problem is that "Morph >> 
position:" seems to be setting the *absolute* position within the world 
rather than position relative to the owner.  How do I set a position 
relative to the owner?

Thanks for helping a Morphic newbie.
--Brian

-- 
Brian Greskamp
4238 Siebel Center
201 N. Goodwin Ave.
Urbana, IL 61801




More information about the Squeak-dev mailing list