summaryrefslogtreecommitdiff
path: root/help/opie-sh/node8.html
blob: 90045edf27025ff54103b98edf4945c62e67ff56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-1 (1.68)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Buttons</TITLE>
<META NAME="description" CONTENT="Buttons">
<META NAME="keywords" CONTENT="opie-sh-howto">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="opie-sh-howto.css">

<LINK REL="next" HREF="node9.html">
<LINK REL="previous" HREF="node7.html">
<LINK REL="up" HREF="node6.html">
<LINK REL="next" HREF="node9.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html134"
  HREF="node9.html">
<IMG WIDTH="20" HEIGHT="20" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="file:/usr/local/share/lib/latex2html/icons/forward.gif"></A> 
<A NAME="tex2html130"
  HREF="node6.html">
<IMG WIDTH="20" HEIGHT="20" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="file:/usr/local/share/lib/latex2html/icons/up.gif"></A> 
<A NAME="tex2html124"
  HREF="node7.html">
<IMG WIDTH="20" HEIGHT="20" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="file:/usr/local/share/lib/latex2html/icons/back.gif"></A> 
<A NAME="tex2html132"
  HREF="node1.html">
<IMG WIDTH="20" HEIGHT="20" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="file:/usr/local/share/lib/latex2html/icons/folder.gif"></A>  
<BR>
<B> Next:</B> <A NAME="tex2html135"
  HREF="node9.html">Icons</A>
<B> Up:</B> <A NAME="tex2html131"
  HREF="node6.html">Usage</A>
<B> Previous:</B> <A NAME="tex2html125"
  HREF="node7.html">General</A>
 &nbsp <B>  <A NAME="tex2html133"
  HREF="node1.html">Contents</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H3><A NAME="SECTION00031200000000000000">
Buttons</A>
</H3>
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:

<P>
<PRE>
opie-sh -m -0 "Ok" -1 "Cancel"
</PRE>

<P>
<BR><HR>
<ADDRESS>

2002-05-15
</ADDRESS>
</BODY>
</HTML>