previous | start | next

## Dialogs

- Another example of a special program mode is a dialog box that requires immediate input from the user.
- Because the user can do nothing else except fill or cancel the dialog, it can be a burden.
- Nevertheless, modal dialog boxes are necessary whenever a program simply cannot proceed with user intervention.
- The wxWindows toolkit makes is easy to program several kinds of dialogs.

  >     wxMessageDialog* dialog = new wxMessageDialog(parent, message);
  >     dialog->ShowModal();
  >     dialog->Destroy();

- The dialog pops up and is displayed until the user clicks the "OK" button.

previous | start | next