アンサー・アラート・ダイアログ(ダイアログ表示用)
Like the ask dialog box above, the answer dialog is a special dialog that has been designed to make it easy to display information in a dialog on screen, and optionally allow the user to make a choice on a list of up to seven choices. Answer includes syntax for opening the dialog, specifying the text, the button choices, and returning the button clicked to the script that called it. You can also specify the window title, as well as an icon to be displayed in the window. As with the ask dialog, the font, object positions, button order and icon will automatically change to reflect the operating system.
上述したアスク・ダイアログ同様、アンサー・ダイアログは特別なダイアログで、スクリーンのダイアログ内に情報を表示するのを簡単にし、オプションとして七つまでの選択肢を用いて項目の選択をするような機能があります。アンサーには、ダイアログを開き、テキストを指定し、選択ボタンを表示し、ボタンがクリックされるとそのボタンを呼びだしたスクリプトにそのイヴェントを返すシンタックスも備えています。また、ウインドウのタイトルを指定したり、ウインドウ内に表示されるアイコンを指定したりします。アスク・ダイアログ同様、フォント、オブジェクト位置、ボタンの順序とアイコンはオペレーティング・システムにより自動的に変更されます。
However, if you do require more flexibility than is provided in this dialog, you should create your own modal dialog box instead (see above).
もしこのダイアログが提供する機能以上の柔軟な機能を必要とするのなら、(上で述べた)独自のモーダル・ダイアログ・ボックスを作成する必要があります。
Figure 22 – Answer Dialogs on Multiple Platforms
図22 ー 各プラットフォームにおけるアンサー・ダイアログ
answer “Hello World!”
answer question "What city is the capital of Italy?" with
"Paris" or "London" or "Rome" titled "Multiple Choice"
The result is returned in the special variable it.
結果は特別な変数 it に返されます。
if it is “Rome” then answer information “That was the correct answer.”
For complete details on the syntax, see the answer command in the Transcript Dictionary.
シンタックスに関する完全な詳細は、answerトランスクリプト辞書の項目を参照してください。
The answer dialog is implemented internally as a stack attached to the Revolution IDE.
For details on customizing the IDE, see the section on Editing the Revolution User Interface.
アンサー・ダイアログは、レヴォルーションのIDEに付属したスタックとして実装されています。
IDE(統合開発環境)のカスタマイズに関しては、Editing the Revolution User Interfaceセクションをご覧下さい。
Tip: If you're not sure what a stack's name is, you can use the mouseStack function to find out. Enter the following in the Message Box (Tools -> Message Box), then move the mouse pointer over the stack window and press Return:
put the mouseStack
秘訣: スタックの名前が分からない時には、mouseStackファンクションを使って見つけることができます。次の行をメッセージ・ボックスに入力し、マウスのポインターをスタックのウインドウにもっていき、リターン・キーを押します。