AddStandardSampleNoteWindow.superclass.constructor.call(this,{ide
layout:'border',this
id: '_addStandardSampleNoteWindow',spa
title:'',orm
width:_width,it
height:_height,io
closeAction:'close',form
maximizable:true,class
resizable :true,plugin
constrain:true,im
plain:true,
autoShow:false,
x:20,
y:window.screen.availHeight * 0.1,
items:[this.form,this.sampleNoteGridPanel],
plain: true,
modal : true,
//manager : new Ext.WindowGroup({'z-seed' : 20000}),
plugins: new Ext.ux.WindowAlwaysOnTop(),
buttonAlign:'center',
buttons : [
{ text : "保存", handler : this.onSave, scope :this, iconCls:'saveIcon' },
{ text : "取消", handler : this.onCancel, scope : this , iconCls:'cancelIcon'},
'->',
]
});
上述代碼中,標記爲紅色的代碼爲模態窗口的相關代碼。
modal:true,表示爲模態窗口,
但若是加上第二行代碼,模態窗口可能會失效,第二行代碼用於控制該窗口的z座標,z座標值越大,窗口越靠前;
第三行代碼表示該窗口老是在最上層。