Don't know for shure but I bet its:

com.addEventListener("execute", function(e){
 var image = e.getTarget();
}, this);


Alex D. schrieb:
Hi folks,

i have a problem here an would like to know if anybody has any hints for me: In my app i have a layout with some images in it. Each image has a context menu like:
=======================*snip*=======================
var com = new qx.client.Command;

var cmenu = new qx.ui.menu.Menu;
var m_1 = new qx.ui.menu.MenuButton("test", null, com);

cmenu .add(m_1);
cmenu .addToDocument();

image.setContextMenu(cmenu);
=======================*snap*=======================
And it works perfectly but i have to know in my command-function what image have user clicked at. Is there any way to do this? Any help is really appreciated.

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

--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH

-------------------------------------------------------------------------
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