4.2.6:Modal Dialog Boxes – for alerts and settings

モーダル・ダイアログ・ボックス(警告や設定用)

A modal dialog box is a window that blocks other actions while the window is displayed. You cannot bring another window in the application to the front until the dialog box is closed, nor can you edit the stack using the tools in the Tools palette. While a modal dialog box is being displayed, the handler that displayed it pauses until the dialog box is closed.

モーダル・ダイアログ・ボックスは、ウインドウが開いている間、他のアクションをブロックするようなウインドウのことです。ダイアログ・ボックスが閉じるまでアプリケーション内ではウインドウを前面に持ってくること(アクティブにすること)ができません。また、ツール・パレットでツールを使った編集もできません。モーダル・ダイアログ・ボックスが表示されている間は、そのダイアログを表示したハンドラはダイアログ・ボックスが閉じるまで中断されます。


Figure 18 – Modal Dialog Boxes on Multiple Platforms

図18 ー 各プラットフォームにおけるモーダル・ダイアログ・ボックス

all_img_47


Modal dialog boxes do not have a close box. Usually, they contain one or more buttons that close the window when clicked.

モーダル・ダイアログ・ボックスにはクローズ・ボックスがありません。通常、モーダル・ダイアログ・ボックスには複数のボタンが置かれていて、クリックするとウインドウが閉じるようになっています。



Important: If you mistakenly open a modal dialog box without having included a button to close the window when clicked, use the contextual-menu shortcut (Control-Shift- Right-click for Unix or Windows, Command-Control-Shift-click for Mac OS). This shortcut displays a contextual menu containing the "Stack Mode" submenu. This submenu changes the mode of the stack you clicked in, allowing you to switch the stack to another mode without closing it.

重要:クリックによってウインドウを閉じるボタンを持っていないモーダル・ダイアログ・ボックスを誤って開いた時には、コンテクスト・メニューのショートカット(ユニックスとウィンドウズではコントロール・キーとシフトキーを押しながら右クリックする、マックOSではコマンド・キーコントロール・キーとシフトキーを押しながらクリックする)を使います。このショートカットで「Stack Mode」サブメニューを含むコンテクスト・メニューが表示されます。このサブメニューにより、クリックしたスタックは開いたままで他のモードに変更されます。


To display a stack in a modal dialog box, you use the
modal command or go commands:

モーダル・ダイアログ・ボックスでスタックを表示するには、modalコマンドかgoコマンドを使います。

modal stack "My Stack"
go stack "My Stack" as modal



Stacks whose
style property is set to "modal" always open as modal dialog boxes, regardless of what command you use to open them.

style
プロパティが「modal」に設定されているスタックは、如何なるコマンドでスタックを開いたとしても、常にモーダル・ダイアログ・ボックスとして開かれます。