I created a small demo html that can be run from the demo folder that demonstrates the problem. I would really appreciate any help in this case(workarounds are welcome!).

Best Regards,
alex.d

Does the fact that even main qooxdoo developers do not answer to this post, means that my problem is unsolvable?(Andreas, Sebastian?) I would like to know if this is a
-qooxdoo-bug
-qooxdoo-structure problem
-just smth. that i don't understand.
One more time the problem-demonstrating-problem code(it's not as big as it looks ;-)

 qx.core.Init.getInstance().defineMain(function()
 {
   var d = qx.ui.core.ClientDocument.getInstance();

  * //Image with a context menu*
   var image = new qx.ui.basic.Image("icon/128/reload.png", 128, 128);
   image.setTop(100);
   image.setLeft(400);
   d.add(image);

      * //Command*
       var com = new qx.client.Command;
       com.addEventListener("execute", function(e){
           this.debug("*What object i've clicked on?*");
           this.debug("e.getData() = " + e.getData());
       }, this);

       *//Context menu*
       var cmenu = new qx.ui.menu.Menu;
       var m_1 = new qx.ui.menu.MenuButton("Show Target", null, com);
       cmenu.add(m_1);
       cmenu.addToDocument();
*//Show context menu*
       image.setContextMenu(cmenu);
       image.addEventListener("contextmenu", function(e){
           this.getContextMenu().setLeft(e.getClientX());
           this.getContextMenu().setTop(e.getClientY());
           this.getContextMenu().show();
       }, image);

 });

Best Regards,
alex.d

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to