[Pharo-users] Morph: event handler on wrong morph/submorph

stepharo stepharo at free.fr
Sat Oct 3 02:56:06 EDT 2015


Hi federico

could you
     - show it to damien when he will come to Laplata?
     - could you produce a small video because I would like to share it 
with other teachers?

Stef

Le 28/9/15 18:59, Federico.Balaguer a écrit :
> Hello,
>
> I found a problem with BotArena
> (http://smalltalkhub.com/#!/~FedericoBalaguer/BotArena) on Pharo 4.
>
> BotArena is an interactive robot simulation environment that we use in my
> university to teach OOP basics. BotArena was developed as an instantiation
> of BOSS (http://smalltalkhub.com/#!/~CAR/BOSS/).
>
> BotArena (as well as BOSS) has a window (Morph) that has three buttons and a
> grid view that is subclass of BorderedMorph. The GridView can handle
> RedButtons, a click on the grid adds a new robot to the simulation.
>
> The problem that raised on Pharo4 is that, after a RedButton event, any
> event (focus to another pharo window or clicking on one of the buttons of
> BotArena) will be handled by the GridView.
>
> It seems like the GridView retains the focus after the (first) RedButton
> event was handled.
>
> Could someone help me to sort this one out?
>
> Thanks! Federico
>
>
>
> --
> View this message in context: http://forum.world.st/Morph-event-handler-on-wrong-morph-submorph-tp4852370.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>





More information about the Pharo-users mailing list