Howdy,
I'm playing around with the Desktop example and have come across a little problem (bug?) when creating windows outside the desktop.createwindow method. It appears in another forum thread an example was given (http://extjs.com/forum/showthread.php?t=32356) which says that things work but ....
I have used the code (with slight mod) below, confirmed that indeed all windows are using the same window manager instance (by iterating through all the windows in the manager and identifying the windows) and no matter how hard i try - i cannot get the window created by new Ext.window to behave with normal window behaviour - that is - when it loses focus to another window it should go behind the focused window.
From: sample.js in the Desktop example directory ...
Code:
snip..
hand = desktop.getManager();
snip...
tbar:[{
text:'Add Something',
tooltip:'Add a new row',
iconCls:'add',
handler : function(){
if (!Ext.getCmp('myWin')){
var newWin = new Ext.Window({
id: 'myWin',
title:'hello,my friend',
manager: hand,
width:640,
height:480,
html : '<p>Something useful would be in here.</p>',
iconCls: 'bogus',
shim:false,
animCollapse:false,
constrainHeader:true
});
}
newWin.show();
}
snip...
Any ideas ? is this is quite a mystery..
thanks
Kev