On Mon, 31 Dec 2018 at 04:24, Steve Quezadas <[email protected]> wrote:
>
> I am experimenting with pharo right now, particularly with Morphs. The
> weird thing is that some morphs can have a rotation halo and others do
not.
>
> This has a "rotate halo":
> bar := EllipseMorph new.
> bar openInWorld.
>
> This does not:
> foo := Morph new.
> foo openInWorld
>
> Am I missing something? Also, how do I send message "rotate" to a morph?
> I can't seem to find a "rotate" method anywhere in the browser.

I don't know anything about this area, but here is how I discovered
something to get you started...
(somewhat recursively...) open new halos on the ellipse-rotation-halo,
then click the spanner halo to Debug > Inspect Morph.
To confirm you are in the right place confirm you can see...
    owner ==> HaloMorph.
    extension > balloonText ==> 'Rotate'
Now dive into... extension > eventHandler > subscriptions, and you'll see a
Dictionary with three items...
  #mouseDown > Items > aMorphEventSubscription > selector ==>
#startRot:with:
  #mouseMove > Items > aMorphEventSubscription > selector ==> #doRot:with:
  #mouseUp   > Items > aMorphEventSubscription > selector ==>
#endInteraction

HTH,
cheers -ben

Reply via email to