Hello anyone.
i'm encountring difficulties in adding a button. i would like to create my own button over a Dialog. (i have an existing code of a dialog, and just want to add new button). i've tried what "sondor" wrote you on the forum, and i get a
JS error. can anyone help me please ?
my new addition to my existing code is:
var myButton = new DwtButton(this.getShell());
myButton.setText("blablabla");
this.dlg.setButtonListener(myButton , new AjxListener(this, this._dialogOkListener));
and i want to add it into an existing function:
Com_Zimbra_Webdialer.prototype._showDnldDlg =
function (ev) {
this._initDnldDlg();
var dialog_args = {title:"Webdialer component missing", view:this._DnldDlgView};
this.dlg = this._createDialog(dialog_args);
this.dlg.setButtonVisible(DwtDialog.CANCEL_BUTTON, false);
this.dlg.setButtonListener(DwtDialog.OK_BUTTON, new AjxListener(this, this._dialogOkListener));
this.dlg.popup();
};
This is mostly urgent
Thank in advance.
Ariel