BogusModule = Ext.extend(Ext.app.Module, { init : function(pageno){ this.launcher = { text: 'Latest Page', iconCls:'bogus', handler : this.createWindow, scope: this, windowId:2, pageno: 16 } }, createWindow : function(src){ var desktop = this.app.getDesktop(); var win = desktop.getWindow('bogus'+src.windowId); if(!win){ win = desktop.createWindow({ id: 'bogus'+src.windowId, title:src.text, width:750, height:500, autoLoad: {url: '/page/'+src.windowId+'/'+src.pageno,scripts:false}, iconCls: 'bogus', tbar: new Ext.Toolbar({ items: [{ text: 'File', iconCls: 'bmenu', menu: new Ext.menu.Menu({ id: 'fileMenu', items: [{ text: 'Close', handler: function() { Ext.getCmp('bogus'+src.windowId).close(); } }] }) },{ text: 'Help', iconCls: 'bmenu', menu: new Ext.menu.Menu({ id: 'helpMenu', items: [{ text: 'About', handler: function() { Ext.MessageBox.alert('About','No information yet'); } }] }) }] }), shim:false, animCollapse:false, constrainHeader:true, autoScroll: true }); } win.show(); } });