tools: [
{id:'toggle'},{id:'close'},{id:'minimize'},{id:'maximize'},{id:'restore'},{id:'gear'},{id:'pin'},{id:'unpin'},{id:'right'},{id:'left'},{id:'up'},{id:'down'},{id:'refresh'},{id:'minus'},{id:'plus'},{id:'help'},{id:'search'},{id:'save'},{id:'print'}
]
eg:
discussWin = new Ext.Window({
title: '提交新讨论',
closeAction: 'hide',
width: 400,
height:300,
minWidth: 300,
minHeight: 200,
layout: 'fit',
items: [discussFrom],
buttonAlign:'center',
tools: [
{id:'toggle'},{id:'close'},{id:'minimize'},{id:'maximize'}
],
buttons:[{text:'提交',handler:function(){}}]
});
discussWin.show();
如下图:
[img]http://dl.iteye.com/upload/attachment/0083/2810/554d8fd0-e0d7-32c6-9c3f-1a5e256f9cc4.jpg[/img]