Hello, first of all, thanks to whoever made this a wonderful project to work
on :)
My problem is the following one:
I want to open a window I've created outside of "main" (the reason is that
I'd like to not overload "main" and I'd like to organize better the code),
but not yet, just create it.
See how is it:
createAboutBox : function()
{
var win = new qx.ui.window.Window("Acerca de...",
"resource/masterstore/dialog-apply.png");
win.setLayout(new qx.ui.layout.VBox(300));
win.setAllowMinimize(false);
win.setAllowMaximize(false);
win.setResizableBottom(false);
win.setResizableTop(false);
win.setResizableLeft(false);
win.setResizableRight(false);
// win.open();
this.getRoot().add(win, {left:100, top:250});
},
main : function()
{
// Call super class
this.base(arguments);
...
However, I'd like to call it from a button inside the main function
btnAyuda.addListener("execute", function(e) {
win.open();
});
The button exists, and it works fine with a simple alert("hello"); but it
doesn't open the window, I guess because the "win" variable is outside of
its scope. I've read a little and found that there's a window manager for
this, would you help me please how to use it for opening my window without
having to put the window code inside the main? thanks in advance
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Window-opening-tp5169459p5169459.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel