Morph Events

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Morph Events

kilon.alios
I would like to understand how morph events work. I want to able to detect when a mouse was clicked inside my morph and also to handle keyboard events. Generally I want to be able to handle all events while the mouse cursor is above my morph. How I do that ? 

for example I have found Morph>>handlesMouseDown: evt 

but I am not sure what evt represents here. 

Whats the role of HandMorph in all this ? 
Reply | Threaded
Open this post in threaded view
|

Re: Morph Events

hilaire
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Morph Events

kilon.alios
Yeah my mistake I should have googled it first. It shown me the chapter you are referring to and Stephane documentation on Morphic. No idea why it did not cross my mind to google it first or why I forgot that PBE has a chapter on this. 

Thanks for help. 


On Sun, Nov 10, 2013 at 7:32 PM, Hilaire Fernandes <[hidden email]> wrote:
Hello,

Did you take a look at the Pharo By Example 1 book?
There is a chapter about Morph discussing a bit Mouse event

Hilaire

Le 10/11/2013 17:36, kilon alios a écrit :
> I would like to understand how morph events work. I want to able to
> detect when a mouse was clicked inside my morph and also to handle
> keyboard events. Generally I want to be able to handle all events while
> the mouse cursor is above my morph. How I do that ?
>
> for example I have found Morph>>handlesMouseDown: evt
>
> but I am not sure what evt represents here.
>
> Whats the role of HandMorph in all this ?


--
Dr. Geo http://drgeo.eu