The buttonType attribute specifies which buttons are to be
displayed in the prompter. Possible values include the following:
- XmOK
- Displays the OK button only.
- XmOKCANCEL
- Displays the OK and CANCEL buttons. This is the default.
- XmRETRYCANCEL
- Displays the RETRY and CANCEL buttons.
- XmABORTRETRYIGNORE
- Displays the ABORT, RETRY, and IGNORE buttons.
- XmYESNO
- Displays the YES and NO buttons.
- XmYESNOCANCEL
- Displays the YES, NO, and CANCEL buttons.
The value returned is determined by the button pressed by the user:
- If the user pressed OK, YES, or RETRY, true is returned.
- If the user pressed NO or ABORT, false is returned.
- If the user pressed CANCEL or IGNORE, nil is returned.