Hi, Here is an implementation example.
From a workspace, do:
| morphA morphB follower | morphA := Morph new position: 10@10. morphB := Morph new position: 100@100. follower := FollowerLineMoprh from: morphA to: morphB. morphA openInWorld. morphB openInWorld. follower openInWorld. Frankly I don't like the idea to subscribe to the HandMorph, because at each mouse move event, you have to check for the morph A and B if they move. It is a waste of CPU cycles. Ideally you will want receive event from morph A and B whenever they changed. I am surious to know if it is possible. Thanks Hilaire Le 11/02/2015 21:19, Stephan Eggermont a écrit :
I'm trying to keep a line morph connected between two morphs while moving one of them. When I add the morph to the hand and start dragging the morph no longer receives mouseMove:. I can think of several ways to get position updates. Is there a best/easy way?
Stephan
-- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu