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坐标值越大,窗口越靠前;
第三行代码表示该窗口老是在最上层。