Next: The InformationDialog Widget Up: Dialogs Previous: Dialogs

The WarningDialog

This dialog is used to inform the user of a possible mistake in the program or with the interaction with the program.

A typical example might be when you select the quit button (or menu item) to terminate the program - if this was selected mistakenly and there is no warning prompt you have got problems!!

The dialog1.c program attaches a pop-up WarningDialog when the quit menu option is selected (Fig 12).

If you now select OK the program terminates.

Cancel returns back to the program.

Fig. 12 dialog1.c output

How do we do this?
Tue May 24 16:52:56 BST 1994