Results 1 to 2 of 2

Thread: Add Button!

  1. #1
    Join Date
    Feb 2007
    Rep Power

    Default Add Button!

    I want to know method that add a customize button on DwtDialog.

    1- "setButtonListener(DwtDialog.OK_BUTTON, new AjxListener(this, this._OkListener)); -> it's ok.

    2- "setButtonListener("example: 'confirm'", new AjxListener(this, this._OkListener)); -> but, it's error.

    please, answer.
    good luck!

  2. #2
    Join Date
    Jun 2007
    Rep Power


    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.

Similar Threads

  1. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  2. Zimbra + Samba LDAP, cannot add winxp
    By fajarpri in forum Installation
    Replies: 4
    Last Post: 07-08-2007, 11:45 AM
  3. Replies: 1
    Last Post: 02-20-2007, 12:49 AM
  4. Adding an Application Button
    By czaveri in forum Developers
    Replies: 16
    Last Post: 11-03-2006, 02:25 PM
  5. Admin Panel add domain finish button broken
    By tomicles in forum Developers
    Replies: 2
    Last Post: 10-08-2005, 10:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts