你可以把toolbar放入到panel里不就好了~
var data = [['value1', '点对象'], ['value2', '线对象'], ['value3', '面对象']];
var store = new Ext.data.SimpleStore({
fields: ['value', 'text'],
data: data
});
var combo = new Ext.form.ComboBox({
store: store,
emptyText: '请选择编辑的图层',
mode: 'local',
triggerAction: 'all',
displayField: 'text'
});
combo.on("select", function(comboBox) {
alert(comboBox.getRawValue());
});
var panel = new Ext.Panel({
renderTo: "map_div",
region: 'center',
style: 'border-left:solid 1px',
border: false,
tbar: [{
text: '全幅显示',
iconCls: 'quanping',
handler: function() { document.getElementById("map").contentWindow.ViewEntire(); }
}, '-',
combo]
});
这样就可以了啊