[squeak-dev] Mouse button tester question
Bob Arning
arning315 at comcast.net
Tue Apr 4 16:23:30 UTC 2017
I'm guessing you want something simple and non-invasive. Not sure there
is such a thing.
You could just nuke all halos:
'From Squeak5.1 of 23 August 2016 [latest update: #16548] on 4 April
2017 at 12:15:16 pm'!
!Preferences class methodsFor: 'standard queries' stamp: 'raa 4/4/2017
12:10'!
cmdGesturesEnabled
"compiled programatically -- return hard-coded preference value"
^ false! !
and then you get the blue without the halo. Or you could use a different
Morph subclass and reimplement #blueButtonDown: to suit your needs, but
using the blue button to get halos is presumed to be important and not
easily overridden.
On 4/4/17 12:03 PM, H. Hirzel wrote:
> I definitively prefer the blue only solution. No halos.
>
> On 4/4/17, H. Hirzel <hannes.hirzel at gmail.com> wrote:
>> On 4/4/17, Bob Arning <arning315 at comcast.net> wrote:
>>> Did you want to change it to blue AND the halo appears? Or just go to
>>> blue and no halo?
>> Whatever is easier. If it does not matter than change to blue only.
>>
>> --Hannes
>>
>>> On 4/3/17 2:19 PM, H. Hirzel 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/20170404/89bdf564/attachment.html>
More information about the Squeak-dev
mailing list
|