Jenec schrieb:
> I have a application, which opens some windows and I need to get reference to
> curently active window.
> Details below:
>
> var alfaWin = new qx.ui.window.Window('alfa');
> alfaWin.id = 'alfa';
>
> var betaWin = new qx.ui.window.Window('beta');
> betaWin.id = 'beta';
>
> Then when I open() both windows and then close one of them, another window
> get focus automatically. But how can I get reference to it, or to my 'id'
> property?
> I tried getWindowManager().getActiveWindow().id , but I dont know how to
> make it work
>
> Thanks for help.
>   
Windows are always added to a desktop widget (impmeneting IDesktop) this 
desktop has a reference to the active window.

The dektop is the parent widget of all windows:

var dektop = betaWin.getLayoutParent();
var activeWindow = desktop..getActiveWindow();


Best Fabian



-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


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

Reply via email to