Two Simple Question

Blacktooth bt at whitestar.soark.net
Fri Nov 26 10:06:58 UTC 1999


> > I would like the ImageMorphs to perform an action by clicking
> > on them. I understand overrinding 'handlesMouseDown' to return
> > true. What I'm not sure about is what to do with "mouseDown:"
> > Do I simply put the code there that I want to execute? Or is there
> > a bit more to it?
> 
>   You might want to use IconicButton instead of ImageMorph.
> If the action you want to perform is relatively simple, even 
> you don't have to override anything.
> 
>   The "target" in the above will be evaluated when you click
> on the button.  (You can pass any number of arguments to the
> target as well.)

Thanks. I didn't even notice IconicButton was there.

Works like a charm.


BT





More information about the Squeak-dev mailing list