Hi Mariano,
You are not alone.
I also get this problem on Windows (Vista) with Pharo1.0betaCore-10401.
 
The cause of the problem is this...
 
Both OSPlatform and InputEventSensor are in the Smalltalk StartUpList.
It is ESSENTIAL that OSPlatform's startup code runs BEFORE InputEventSensor's startup code.
 
This is because installMouseDecodeTable calls "Preferences swapMouseButtons", which in turn calls "OSPlatform current platformFamily".
The OSPlatform startup code sets "OSPlatform Current" to a new instance representing the current platform.
 
If InputEventSensor startup runs BEFORE OSPlatform's startup, then "OSPlatform current" will be an instance representing the Operating System on which the image was SAVED. (This explains why saving the image and restarting solves the problem)
 
Try evaluating this in an image with the right mouse button not working...
 
  ((SystemDictionary classPool at: 'StartUpList') indexOf: #OSPlatform) < ((SystemDictionary classPool at: 'StartUpList') indexOf: #InputEventSensor).
 
It should be true, but will evaluate to false.
 
Now evaluate...
 
  OSPlatform initialize.
   ((SystemDictionary classPool at: 'StartUpList') indexOf: #OSPlatform) < ((SystemDictionary classPool at: 'StartUpList') indexOf: #InputEventSensor).
 
It is now true - the startups are in the correct order.
 
I guess that the solution is to build a new core image with the startup order repaired by evaluating "OSPlatform initialize."
 
Cheers,
Andy
"Mariano Martinez Peck" <marianopeck@gmail.com> wrote in message news:a38fadc50908111224p181c8408qd8c6161229bcae90@mail.gmail.com...


On Tue, Aug 11, 2009 at 6:15 PM, Adrian Lienhard <adi@netstyle.ch> wrote:
Can you reproduce this with a fresh Pharo-core?

It would be interesting to know whether the method is run at startup
in your image. It is run as expected in my image (latest pharo-core).
Could you add a halt in #installMouseDecodeTable save and restart the
image?

Yes, I did that. Clean pharo beta core. The situation is this:

When you first open the image, it doesn't work. However, if you save it (without doing nothing) and open it again, it start working (even when not evaluating InputEventSensor  installMouseDecodeTable)

I am alone?

best,

mariano
 

Adrian

On Aug 11, 2009, at 20:38 , Mariano Martinez Peck wrote:

> On Tue, Aug 11, 2009 at 5:29 PM, Adrian Lienhard <adi-cTM//Nd5/DIfv37vnLkPlQ@public.gmane.org>
> wrote:
>
>> What I don't understand is why InputEventSensor
>> installMouseDecodeTable would solve the problem because this method
>> is
>> run at startup...
>
>
> I really don't know, but works :(
>
>
>>
>>
>> Adrian
>>
>> On Aug 11, 2009, at 20:19 , Torsten Bergmann wrote:
>>
>>>> With Pharo beta, right button still doesn't work out of the box
>>>> in Windows.
>>>
>>> Mariano, can you try the installer executable on
>>> http://pharo-project.org/pharo-download ?
>>>
>>> For me right button work out of the box on XP and Vista and the
>>> installer uses the same image as Damien provides on the download
>>> site.
>>>
>>> Bye
>>> Torsten
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla
>>> Firefox 3 -
>>> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project@lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project@lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project