EventHandlerPlus and mouseOver

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

EventHandlerPlus and mouseOver

Enrico Schwass-2
Hello

I am using Morphic to display some geographical maps. For easier
testing, I would like to see the current position of the HandMorph
as LabelString at the bottom of the map window.

But I have to dig deep into morphic event handling to do this.
At least I am unable to figure it out.
I found the class EventHandlerPlus that might help here.
Could you provide some informations about that?

Thanks
Enno
 
--
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: EventHandlerPlus and mouseOver

Bert Freudenberg
On 19.05.2008, at 22:07, Enno Schwass wrote:

> Hello
>
> I am using Morphic to display some geographical maps. For easier
> testing, I would like to see the current position of the HandMorph
> as LabelString at the bottom of the map window.
>
> But I have to dig deep into morphic event handling to do this.
> At least I am unable to figure it out.
> I found the class EventHandlerPlus that might help here.
> Could you provide some informations about that?


Why don't you use something simple like this?

(UpdatingStringMorph on: ActiveHand selector: #position) openInHand

- Bert -


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: EventHandlerPlus and mouseOver

Enrico Schwass-2
Bert Freudenberg <[hidden email]> writes:

Hello Bert

>> I am using Morphic to display some geographical maps. For easier
>> testing, I would like to see the current position of the HandMorph
>> as LabelString at the bottom of the map window.
>> But I have to dig deep into morphic event handling to do this.
>> At least I am unable to figure it out.
>> I found the class EventHandlerPlus that might help here.
>> Could you provide some informations about that?

> Why don't you use something simple like this?
> (UpdatingStringMorph on: ActiveHand selector: #position) openInHand

Because I wasnt aware of this. The class library is still surprising me 3
times a week. It probably fits perfect. Thanks. You saved my day.

But nevertheless I want to know, in what situations EventHandlerPlus is
used. Just to get an idea about how to handle mouseOver:

Have a nice day
Enno
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners