Contents Up Previous Next 原文へのリンク

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:

  1. 周囲のフレームは暗黙のうちに作成されます。
    A surrounding frame is implicitly created.
  2. アイテム(現在ウインドウズのみ)間にタブをつけるような付加的な機能性は、ダイアログボックスに自動的に与えられます。
    Extra functionality is automatically given to the dialog box, such as tabbing between items (currently Windows only).
  3. ダイアログボックスがモーダルの場合、ダイアログボックスが終了するまで呼び出し側のプログラムはブロックされます。
    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.

また、wxPanelwxWindow を継承したメンバ関数のために参照してください。 コントロールの中のデータの検証については、wxValidator の概要でカバーしています。
See also wxPanel and wxWindow for inherited member functions. Validation of data in controls is covered in Validator overview.