cyrille

do you have a piece of code to illustrate your problem?
Let me rephrase our discussions:

        you can get the associated checkbox event (set by
        on: #click send: #amessage to: receiver) raised only
        when you click on the label but not on the tick.

And that
        checkbox buttonMorph on: #click send: #amessage to: receiver,
        is not working on click
but   checkbox buttonMorph on: #mouseDown send: #amessage to: receiver,
        is.


Stef



On Oct 6, 2009, at 12:08 PM, Cyrille Delaunay wrote:

> Hi,
>
> Here is what I want to do:
>
> - I have checkbox: ChekboxMorph new
> - A checkbox is made of a label and a button
> - I want to do a specific action when there is a mouse click on the  
> button
>
> For that:
>
> - I saw that there is a method #on:send:to: in Morph with wich we  
> can do:
>
> checkbox on: #click send: #amessage to: receiver
>
> Problem:
>
> - when I do
>          checkbox on: #click send: #amessage to: receiver,
>   all is ok.
> - when I do
>          checkbox buttonMorph on: #click send: #amessage to: receiver,
>   to consider the click on the button, it doesn't work, the event is  
> never handled (whereas #mouseDown for example is handled).
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to