4.2.3:The
Standard Window Types
標準的なウインドウのタイプ
Revolution windows are usually one of four types:
editable
or
topLevel
windows,
modal
or
modeless
dialog boxes,
or palette
windows.
レヴォルーションのウインドウは、普通は次の四つのタイプのうちのどれかになります:編集可能或はトップレベルのウインドウ、モーダル或はモードのないダイアログ・ボックス、パレット・ウインドウ
Important:
You will normally
create a new stack and edit it while it is in editable
mode.
If you want to create a dialog, you edit the stack as
normal, then specify in the script at the appropriate place
in your user interface – the part that brings up the dialog
– that you would like it displayed as a dialog, or a
palette, etc. The appropriate commands for doing this are
detailed with each type of window below. You can test out
these commands as you work on your window layout and
scripts, using the Message
Box (see section of the same name),
or using the window
context menu (see Modal
Dialog Boxes, below). For more details on
writing scripts in general, see the section on
Writing
Transcript Code.
重要:通常、新規スタックを作成しそれを編集するのは、編集モードで行います。ダイアログを作成する時は、スタックを通常通り編集し、次にスクリプトでダイアログやパレットなどを表示させるユーザー・インターフェースの適当な場所〜つまり、ダイアログが表示される部分〜を指定します。こうしたことを可能にするコマンドは、以下でウインドウのタイプ毎に詳しく述べていきます。メッセージ・ボックス(同名のセクションをご覧下さい)やウインドウのコンテキスト・メニュー(後で述べるModal
Dialog
Boxesをご覧下さい)を使えば、レイアウト作成中やスクリプト作成中にこれらのコマンドを試すことができます。スクリプト作成一般に関する詳細は、Writing
transcript Codeセクションをご覧下さい。
Most
windows are editable or topLevel
windows, and this
is the default mode for Revolution stacks. If you open a
stack using the go
command (without
specifying a mode), or using the Open Stack menu item, then
the stack is displayed as an editable window unless
its style
property specifies
another window type.
大抵のウインドウは編集可能或はトップレベルのウインドウで、これらがレヴォルーション・スタックのデフォルトになります。(モードを指定しないで)goコマンドを使ってスタックを開いた時、或はOpen
Stackメニュー項目を使って開いた時には、styleプロパティで他のウインドウのタイプが指定されていなければ、スタックは編集可能ウインドウとして開かれます。