(r _ RectangleMorph new extent: 500@500) openInHand; position: r center
Cheers, Bob
On 5/28/13 6:05 PM, Chris Muller wrote:
I'm using #openInHand, which opens my morph, centered under the hand. I want to open it in the hand, but attached near the upper left corner rather than the center.
To do this, I factored the temp var "delta" calculation out of HandMorph>>#attachMorph:, so it would take an argument instead, attachMorph: aMorph at: delta. Regular attachMorph now calls it passing in the center point.
Now I have an attach API that accepts an offset, guess I just need to support openInHand: offset to call the new #attachMorph:at:.
(Sigh) It works but is there a better way to do this?