Button tracking Morph

subbukk subbukk at gmail.com
Thu May 24 16:19:59 UTC 2007


On Thursday 24 May 2007 9:01 pm, David Mitchell wrote:
> Have you looked at:
>
>     HandMorph showEvents: true
Thanks. I noticed that HandMorph maintains a collection of listeners who get 
notified on all events. I suppose I can:

ActiveHand addEventListener: self
and
ActiveHand removeEventListener: self

to turn listening on and off and then define

ButtonMorph>>handleListenEvent: evt
        "process events here"

BTW, EventStats and ShowEvents could have been implemented as listeners 
instead of hacking into the handler itself. Any reason why they were done 
that way?

Regards .. Subbu



More information about the Squeak-dev mailing list