Hello list,
i tried to build my own context menu (i started with the Menu_2.html
example),
but the QxMenu widget builds only the border and stops then.
i attached the following event to a button (c1):
c1.addEventListener("mousedown", function(e) {
var button = e.getButton();
var x = e.getPageX();
var y = e.getPageY();
if (button=="right") {
m1.setLocation(x, y);
if (!m1.isSeeable()) m1.show();
}
if (button=="left") {
if (m1.isSeeable()) m1.hide();
}
// e.setPropagationStopped(true);
});
m1 is the menu.
http://www.nabble.com/user-images/2596.gif
:-(
regards
Thomas
--
View this message in context:
http://www.nabble.com/custom-right-mouse-click-context-menu-t1349100.html#a3609120
Sent from the qooxdoo-devel forum at Nabble.com.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel