Hi,

I am trying to create an extended panel, which is a Tabbed panel and displayed using Viewport.
In this extened panel, i have a combo box, whick is attached to the tbar and everything works fine.
But i need to add another button to the tbar, how should i do it ??

Need help.

Thanks.


Here is the code:

//creating extened panel
Ext.namespace('ux');
Ext.ux.TestViewer = Ext.extend(Ext.ux.Panel,{
width:500,
height:400,
initComponent:function(){

});

//creating combo box
var intentCombo = new Ext.form.ComboBox({
fieldLabel: 'Intents',
valueField:'id',

});

//creating button
var btnViewPandP = new Ext.Button({
text: 'Test button',

});

// PGrid
// GGrid


this.layout='column';
this.tbar = [intentCombo]; //here i want to add the button next to it ..how ????
this.items=[PGrid,CGrid];
this.border = false;


Ext.ux.DeployedViewer.superclass.initComponent.call(this, arguments);

}
,onRender:function(){

Ext.ux.DeployedViewer.superclass.onRender.apply(this, arguments);


}
});