Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/doc/en/html/macro/command/statusbox.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7988 - (show annotations) (download) (as text)
Mon Aug 19 14:52:15 2019 UTC (4 years, 9 months ago) by doda
File MIME type: text/html
File size: 2658 byte(s)
box系マクロコマンドの説明を更新

・[参照]に他のbox系コマンドおよびsetdlgboxを追加
・setdlgboxの対象からyesnoboxが漏れていたので追加

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <title>statusbox</title>
7 <meta http-equiv="Content-Style-Type" content="text/css">
8 <link rel="stylesheet" href="../../style.css" type="text/css">
9 </head>
10
11 <body>
12
13
14 <h1>statusbox</h1>
15
16 <p>
17 Displays the status dialog box.
18 </p>
19
20 <pre class="macro-syntax">
21 statusbox &lt;message&gt; &lt;title&gt; [&lt;special&gt;]
22 </pre>
23
24 <h2>Parameters</h2>
25
26 <dl>
27 <dt class="macro">string &lt;message&gt;</dt>
28 <dd>It is displayed in the dialog box.</dd>
29
30 <dt class="macro">string &lt;title&gt;</dt>
31 <dd>It is displayed as the dialog box title.</dd>
32
33 <dt class="macro">integer &lt;special&gt; (optional default=0)</dt>
34 <dd>If it is non-zero, following strings in &lt;message&gt; is treated as spacial character.<br>
35 <table border="2">
36 <tr>
37 <th>input</th>
38 <th>output</th>
39 </tr>
40 <tr>
41 <td>\\</td>
42 <td>"\"</td>
43 </tr>
44 <tr>
45 <td>\n</td>
46 <td>line feed</td>
47 </tr>
48 <tr>
49 <td>\t</td>
50 <td>tab</td>
51 </tr>
52 </table>
53 <b><u>This option is obsolete. You are recommended to use the strspecial command.</u></b>
54 </dd>
55 </dl>
56
57 <h2>Remarks</h2>
58
59 <p>
60 Displays the status dialog box if it has not been displayed yet.<br>
61 Changes the message to &lt;message&gt; and title to &lt;title&gt;.
62 </p>
63
64 <p>
65 The "<a href="setdlgpos.html">setdlgpos</a>" command changes the position of status dialog box.<br>
66 The "<a href="closesbox.html">closesbox</a>" command closes the status dialog box. A user can not close the status dialog box by using the Enter and ESC key.
67 </p>
68
69 <h2>Example</h2>
70
71 <pre class="macro-example">
72 ; Set the initial position.
73 setdlgpos 200 200
74 ; Display the status dialog box.
75 statusbox 'Message' 'Title'
76 pause 3
77 ; Move the dialog box.
78 setdlgpos 0 0
79 pause 3
80 ; Move the dialog box.
81 closesbox
82 </pre>
83
84
85 <pre class="macro-example">
86 ; infinite loop while displaying the counter
87 step = 0
88 while 1
89 call show_step
90 sendln 'echo do something'
91 wait '$'
92 pause 2
93 endwhile
94 end
95
96 :show_step
97 step = step + 1
98 gettime timestr &quot;%Y/%m/%d-%H:%M:%S&quot;
99 sprintf2 s &quot;counter %d&quot; step
100 statusbox timestr s
101 return
102 </pre>
103
104 <h2>See also</h2>
105 <ul>
106 <li><a href="strspecial.html">strspecial</a></li>
107 <li><a href="closesbox.html">closesbox</a></li>
108 <li><a href="bringupbox.html">bringupbox</a></li>
109 <li><a href="setdlgpos.html">setdlgpos</a></li>
110 </ul>
111
112 </body>
113 </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26