Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/messagebox.html
Parent Directory
| 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: 1922 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>messagebox</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>messagebox</h1> |
| 15 |
|
| 16 |
<p> |
| 17 |
Displays a dialog box with message. |
| 18 |
</p> |
| 19 |
|
| 20 |
<pre class="macro-syntax"> |
| 21 |
messagebox <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>Example</h2> |
| 58 |
|
| 59 |
<pre class="macro-example"> |
| 60 |
messagebox ErrorMessage 'Error' |
| 61 |
|
| 62 |
title="Five lines display" |
| 63 |
message="First line\nSecond line\nThird line\nFourth line\nFifth line\n" |
| 64 |
strspecial message |
| 65 |
messagebox message title |
| 66 |
</pre> |
| 67 |
|
| 68 |
<pre class="macro-example"> |
| 69 |
variable = 99 |
| 70 |
sprintf2 msg "%d" variable |
| 71 |
messagebox msg "variable =" |
| 72 |
</pre> |
| 73 |
|
| 74 |
|
| 75 |
<h2>See also</h2> |
| 76 |
<ul> |
| 77 |
<li><a href="setdlgpos.html">setdlgpos</a></li> |
| 78 |
<li><a href="statusbox.html">statusbox</a></li> |
| 79 |
<li><a href="strspecial.html">strspecial</a></li> |
| 80 |
</ul> |
| 81 |
|
| 82 |
</body> |
| 83 |
</html> |
|