| 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 <message> <title> [<special>] |
| 22 |
</pre> |
| 23 |
|
| 24 |
<h2>Parameters</h2> |
| 25 |
|
| 26 |
<dl> |
| 27 |
<dt class="macro">string <message></dt> |
| 28 |
<dd>It is displayed in the dialog box.</dd> |
| 29 |
|
| 30 |
<dt class="macro">string <title></dt> |
| 31 |
<dd>It is displayed as the dialog box title.</dd> |
| 32 |
|
| 33 |
<dt class="macro">integer <special> (optional default=0)</dt> |
| 34 |
<dd>If it is non-zero, following strings in <message> 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 <message> and title to <title>. |
| 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 "%Y/%m/%d-%H:%M:%S" |
| 99 |
sprintf2 s "counter %d" 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> |