I have an application that has many windows, which can be handled by corresponding buttons on a toolbar (sounds familiar right?!)
I currently have it so that if you click a button on the toolbar, if it is not ontop bring it to the front (toFront
), if it is minimised, maximise it etc.
I want to be able to detect whether the window is the front most window...
Cheers
EDIT
TO further describe the situation: say if I have a window that is at the front, or "active". Then I click the corresponding toolbar button which minimises that window. I want to then find which window becomes "active".
Ext JS is a popular JavaScript framework which provides rich UI for building web applications with cross-browser functionality. Ext JS is basically used for creating desktop applications. It supports all the modern browsers such as IE6+, FF, Chrome, Safari 6+, Opera 12+, etc.
You can look at requires as a way to tell ExtJS: "When you construct an object of this class, please make sure to dynamically load the required scripts first".
setting closeAction to destroy prior to calling close() : win. closeAction='destroy'; win. close();
Ext JS is a JavaScript application framework for building interactive cross-platform web applications using techniques such as Ajax, DHTML and DOM scripting.
To manage your Ext.Window instances use the Ext.WindowMgr singleton:
http://dev.sencha.com/deploy/dev/docs/?class=Ext.WindowMgr
In a button's handler:
// Assuming 'winID' has been populated with the ID of an
// Ext.Window instance associated with the button.
win = Ext.WindowMgr.get(winID);
win.show();
Ext.WindowMgr.bringToFront(win);
win.maximize();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With