You need to create new button object or use predefined ones like DwtDialog.CANCEL_BUTTON, DwtDialog.OK_BUTTON,DwtDialog.DISMISS_BUTTON...
you can create your own button
myButton = new DwtButton(...); and then you can set button listener on components that contains this button(for example a dialog)
dialog.setButtonListener(myButton , new AjxListener(this, this._OkListener));
Last edited by sondor; 10-18-2007 at 07:16 PM..
|