[Seaside] Re: [Pharo-project] mouse right button

Lukas Renggli renggli at gmail.com
Mon Feb 8 22:50:45 UTC 2010


Thanks for all the help, I've uploaded a new version of the Seaside
One-Click distribution with the adapted ini file. I guess this should
finally work. Now we need some people to test it with an actual
windows machine.

Lukas

On 8 February 2010 23:28, Andreas Raab <andreas.raab at gmx.de> wrote:
> Lukas Renggli wrote:
>>
>> So that means if I take a recent Pharo-Core 1.0 and if I do not touch
>> #swapMouseButtons then it should work with 3ButtonMouse=1 on Windoze
>> too?
>
> The preferences need to agree. Here's a test you can use to ensure
> consistency:
>
> testWinVM3ButtonMousePreference
>        "Ensure that swapMouseButtons agrees with 3ButtonMouse preference"
>        | iniData iniPref exePath |
>        SmalltalkImage current platformName = 'Win32' ifFalse:[^self].
>        exePath := SmalltalkImage current getSystemAttribute: 0.
>        iniData := [
>                (FileStream readOnlyFileNamed: (exePath copyUpToLast: $.),
> '.ini')
>                         contentsOfEntireFile
>        ] on: Error do:[:ex| ex return: ''].
>        iniPref := false. "default is OFF"
>        iniData linesDo:[:line|
>                (line beginsWith: '3ButtonMouse') ifTrue:[
>                        iniPref := (line copyAfter: $=) withBlanksTrimmed ~=
> '0'.
>                ].
>        ].
>        self assert: iniPref = Preferences swapMouseButtons.
>
> Cheers,
>  - Andreas
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list