I'm afraid qooxdoo contextmenu action won't work in all browsers. Besides you 
cannot ask end users to switch off default behavior of mouse right click in web 
browsers. I wouldn't do it.

I filed a bug/feature request last year regarding alternative contextmenu 
action http://bugzilla.qooxdoo.org/show_bug.cgi?id=1528 . You can check out 
spike solution and implement it for yourself if you want.

I developed a static method setContextMenu() in my application based on the 
spike solution, that sets both types of contextmenu actions - default qooxdoo 
one and alternative described in bug #1528.

It works brilliantly. My users can use default action if supported by browser 
or they can use alternative action if browser blocks mouse right click.

Ian Horst


Amit Rana wrote:
> Hi Christian,
> 
> I tried to mimic the same using a dummy code.
> Firefox hides the default right-click  and shows only the user-defined 
> menu (as set in its Options -> Content -> Enable JS -> Advanced -> 
> Diasble or replace context menu). But IE shows both menus (user-defined 
> and default browser).
> 
> Maybe I don't see my context-menu in my application because its 
> overwritten by the default menu (since both come on same place).
> 
> Here is the sample code :
> 
>         var menu = new qx.ui.menu.Menu();
>             var undoButton = new qx.ui.menu.Button("Undo");
>               var redoButton = new qx.ui.menu.Button("Redo");
>               menu.add(undoButton);
>               menu.add(redoButton);
>               var button = new qx.ui.form.MenuButton("Menu Button", 
> null, menu);
>               this.getRoot().add(button);
> 
> Try in FF and IE and you will see the difference. I don't think its a 
> Qooxdoo bug. Sorry for the confusion.
> 
> I am thinking, maybe I can switch off the default action method of the 
> browser so that I only see my menu.
> 
> Suggestions are welcome.
> 
> regards
> Amit
> 
> Christian Schmidt wrote:
>> Hi Amit,
>>
>> could you please open a bug report and add a code snipped to reproduce 
>> the issue.
>>
>> Thanks,
>> Chris
>>
>> Amit Rana schrieb:
>>   
>>> Hi,
>>>
>>> I am using the contextmenu event listener in my application. So, when I 
>>> right click, I get its desired functionality in Firefox. But, the same 
>>> doesn't work in IE.
>>>
>>> I am using v0.8 SDK and IE7.
>>>
>>> Regards
>>> Amit
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net email is sponsored by:
>>> SourcForge Community
>>> SourceForge wants to tell your story.
>>> http://p.sf.net/sfu/sf-spreadtheword
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> qooxdoo-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>   
>>>     
>>
>>   
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to