-
25 May 2009 5:12 AM #1
Window "always on top" feature
Window "always on top" feature
In my large application, I need to have a windows with "always on top" feature. I looking for solutions at the forum and maillists, but did not find anything suitable.
I'm using the following method, it works, but I do not like it. Do not even know what, maybe the loop as is (the revision of all windows).
So question to ExtJS guru: what is wrong in my decision? Is it normal way to do so?
Thanks.
Code:var usualWin = new Ext.Window({ // ... listeners: { activate: function() { Ext.WindowMgr.each(function(w) { if (w.alwaysOnTop) w.toFront(); }); } } }); var aotWin1 = new Ext.Window({ // ... alwaysOnTop: true, // ... }); var aotWin2 = new Ext.Window({ // ... alwaysOnTop: true, // ... });
-
25 May 2009 5:17 AM #2Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
25 May 2009 5:44 AM #3
1. The hack of "widgets/WindowManager.js" doesn't work. Any click to not "alwaysOnTopped" will sends "topped" to back.
2. The "Ext.ux.WindowAlwaysOnTop" plugin do a loop like in my example. Ofcource using plugin is better, but...
3. "self.manager.bringToFront(self);" or "self.toFront();" on deactivate event are not reflects the task.
-
3 Oct 2010 9:13 PM #4
*bump*
*bump*
imho, alwaysOnTop feature is a must have... PLEASE GUYS!!!
*bump* x2--
Hans Doller
hans@w3forge.org
Senior Web Developer & Consultant
Contributed Plugins: Ext.date.RangeField, Ext.money.Exchange, Ext.locale.Format, Ext.ux.Bootstrap
-
29 Oct 2010 3:58 AM #5
There is another way:
Code:var onTop = new Ext.WindowGroup; onTop.zseed = 10000; new Ext.Window({ manager: onTop });


Reply With Quote