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:
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.
See also wxPanel and wxWindow for inherited member functions. Validation of data in controls is covered in Validator overview.