Hi Stephan,
El 05-02-2018, a las 11:27, Stephan Eggermont <stephan@stack.nl> escribió:
Juraj Kubelka <juraj.kubelka@icloud.com> wrote:
morph := 'Hello' asMorph. morph on: #mouseUp send: #traceCr: to: morph. morph openInWindow.
This does not work for me either. I am fine with the MorphicEventHandler solution.
Not at all? Or do you just need to use the variant sending #value: to a block with the morph as an argument?
I am not sure if we understand each other. The example: morph := 'Hello' asMorph. morph on: #mouseUp send: #traceCr: to: morph. morph openInWindow does not work for me. Actually I have not found a code that triggers #mouseUp event neither. The example: morph := 'Hello' asMorph. morph eventHandler: MorphicEventHandler new. morph eventHandler on: #click send: #traceCr: to: morph. morph openInWindow. works well and this is what I use. All tested on Pharo 6.1. Cheers, Juraj
Stephan