[squeak-dev] Mouse button tester question

John-Reed Maffeo jrmaffeo at gmail.com
Tue Apr 4 15:21:42 UTC 2017


Hannes, you may find the attached useful. File it in and do "SensorReporter
setupAndDisplay". While using it, you will see other artifacts which occur
as a result of the key press e.g. halo behavior, but the reporting is
accurate.

- jrm


On Tue, Apr 4, 2017 at 7:04 AM, H. Hirzel <hannes.hirzel at gmail.com> wrote:

> Hello,
>
> http://wiki.squeak.org/squeak/2332  'Mouse button tester'
>
> has
>
>     m := Morph new.
>     m on: #mouseDown send: #value: to:[:evt|
>         evt redButtonPressed ifTrue:[m color: Color red].
>         evt yellowButtonPressed ifTrue:[m color: Color yellow].
>         evt blueButtonPressed ifTrue:[m color: Color blue]
>        ].
>     m openInWorld.
>
> red and yellow button work, but the blue button brings up the halo as
> it is noted on the wiki page (tested with a three button mouse).
>
> I wonder if there is a way to make the change of the button to blue
> possible?
>
> --Hannes
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20170405/8cf2bacd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SensorReporter.st
Type: application/octet-stream
Size: 1787 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20170405/8cf2bacd/attachment.obj>


More information about the Squeak-dev mailing list