Next: Icons
Up: Usage
Previous: General
  Contents
You can specify up to three buttons to appear on the bottom of the dialog. If you do not specify any buttons, there will be a single ``Ok'' button for the user to press. To specify the text of a button, use ``-n'', where n is the number of the button whose text you want to specify, starting with 0, and ending at 2. If you do not specify the text of a button, it will not be displayed. The number of the button the user presses is the return code of the program (if the user presses either of the built-in buttons on the top of the dialog, you will get a return code of -1). For example, the following will display a message box with two buttons, ``Ok'' and ``Cancel''. If the user presses ``Ok'', the return code is 0, if they press ``Cancel'', it is 1:
opie-sh -m -0 "Ok" -1 "Cancel"
2002-05-15