wxDialog の概要
wxDialog overview
Classes: wxDialog
ダイアログボックスは次の例外を除いて、コントロールを置くために使用することができるウィンドウであるという点でパネルに似ています:
A dialog box is similar to a panel, in that it is a window which can
be used for placing controls, with the following exceptions:
-
周囲のフレームは暗黙のうちに作成されます。
A surrounding frame is implicitly created.
-
アイテム(現在ウインドウズのみ)間にタブをつけるような付加的な機能性は、ダイアログボックスに自動的に与えられます。
Extra functionality is automatically given to the dialog box,
such as tabbing between items (currently Windows only).
-
ダイアログボックスがモーダルの場合、ダイアログボックスが終了するまで呼び出し側のプログラムはブロックされます。
If the dialog box is modal, the calling program is blocked
until the dialog box is dismissed.
Windows 3 の下で、モーダルダイアログはモードレスダイアログとのメッセージループを使って、
エミュレートされなければなりません。
なぜなら、Windows 3 がモーダルダイアログのの内容がリソースファイルからロードされるか、
ダイアログ初期化メッセージの受領時に作られるのを期待するためです。
これは wxWidgets を余りに制限します、そこで、どんなウィンドウも作成され、そして、その内容が作成される前に表示ます。
Under Windows 3, modal dialogs have to be emulated using
modeless dialogs and a message loop. This is because Windows 3 expects
the contents of a modal dialog to be loaded from a resource file or
created on receipt of a dialog initialization message. This is too
restrictive for wxWidgets, where any window may be created and displayed
before its contents are created.
ファイルセレクションを含む、便利なダイアログ関数のセットについては
ダイアログ関数を参照して下さい。
For a set of dialog convenience functions, including file selection, see
Dialog functions.