[squeak-dev] Mouse button tester question

H. Hirzel hannes.hirzel at gmail.com
Mon Apr 3 18:19:08 UTC 2017


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


More information about the Squeak-dev mailing list