Hi Mustafa,
On Thursday 30 June 2011 16:01:20 Mustafa Sak wrote:
> as I could see, nether Desktop nor Manager has any event to check wich
> window is active at the moment. I mean every window has this event for its
> own, but it would be more consequent to use a Desktop for MDI like apps if
> you could check if active window changes. It would be comfortable if any
> state change of active window would fire an event at manager.
> Or am I thinking wrong, is their any more elegant way?
What about the "activeWindow" property of the "qx.ui.window.Desktop" class?
Sure, it has still no change event, but this would be easy to add.
> I will help me out with an subclass of qx.ui.window.Manager and just
> enhance changeActiveWindow like this:
> changeActiveWindow : function(active, oldActive) {
> if (active) {
> this.bringToFront(active);
> active.setActive(true);
> this.fireDataEvent(‘changeActive’, active, oldActive)
> }
> if (oldActive) {
> oldActive.resetActive();
> }
> },
>
> And than I should subclass Window to fire an event like ‘changeActiveState’
> at restored, maximize and minimize.
> Or am I off the track?
No, I think the best would be to open an enhancement issue report to address
this.
Regards,
Alex
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel