Hi,

Please provide a playground example.

http://demo.qooxdoo.org/current/playground/

Tino

Am 29.12.2011 um 00:08 schrieb jhwrightiii:

Selecting a button from a toolbar, I would like to destroy all open windows
and start new.  So a window opens and other windows can open from there and
are added to desktop manager.

So now a new button from toolbar is selected and I:

               var win = desktop.getWindows();
for (var n = 0; n < win.length; n++)
{
//win[n].close();
win[n].destroy();
};

Destroying always exits the loop after one window.  If I just use .close it
works or I get what I want, but obviously the next time a new toolbar button
is selected it iterates over more and more windows that I really do not wish
to be there.  That part I understand, but what is happening with destroy?
Thanks for reading and helping.


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Closing-Windows-in-Desktop-tp7134320p7134320.html
Sent from the qooxdoo mailing list archive at Nabble.com<http://Nabble.com>.

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Tino Butz
Mobile Architect

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-4488
[email protected]<mailto:[email protected]>

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Robert Hoffmann, 
Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to