This is the code i use to generate a simple menu:
CreateMenu : function()
{
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
winW = window.innerWidth;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW = document.body.offsetWidth;
}
}
var frame = new qx.ui.container.Composite(new
qx.ui.layout.Grow);
var menuBar = new qx.ui.menubar.MenuBar;
menuBar.setWidth(winW-2);
frame.add(menuBar);
// [MenuBar]
menuBar.add(new qx.ui.menubar.Button("Test", this.createFileMenu()));
//fileMenu.addListener("execute", this.createFileMenu());
return frame;
},
createFileMenu: function()
{
alert("Do you see?");
}
I want that the alert do you se shows when i click the button but instead it
shows when i open the page.
--
View this message in context:
http://www.nabble.com/Menubutton-error-tp19810858p19810858.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel