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
--
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 -
Bert Freudenberg bert@freudenbergs.de 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@lists.squeakfoundation.org