[squeak-dev] Re: HandMorph etc #grabTransform
tim Rowledge
tim at rowledge.org
Fri Dec 11 22:39:22 UTC 2015
With power back, I can do some googling and it seems nothing has ever really been done with #grabTransform that has leaked out into the public googlesphere.
Somebody somewhere must remember what it was intended for?
> On 10-12-2015, at 2:47 PM, tim Rowledge <tim at rowledge.org> wrote:
>
> Has anybody used the #grabTransform message that is sent by HandMorph as part of picking up a Morph? Every use I can find of it seems to set it to an Identity transform and trying to use it for make my dragged morph appear half-size is not working in a very understandable manner.
>
> HandMorph>grabMorph:from: is the major player here; it asks the formerOwner for the grabTransform (without specifying for which grabbed morph, which seems odd) and uses that along withe formerOwner’s transform to do things to the grabbed morph. If I make my owner-morph implement grabTransform to return an identity transform, the grabbing works as normal. If I provide atransform that does any scaling (which is what I want to use) then
> a) the positions and offsets get all screwy
> b) dropping doesn’t work the same - you have to drop the morph and then click-release again to get it to actually drop. That part really confuses me right now.
>
> I doubt this code was stuck in for the fun of it so I feel sure somebody must have had a use for it in the past. Does anyone remember anything about it?
>
> Oh joy; power cut. Hopefully the UPS will last long enough to get this sent.
tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Ignoranus (n): A person who's both stupid and an asshole.
More information about the Squeak-dev
mailing list
|