Next: The WarningDialog Up: X WINDOWS Previous: Other MainWindow children

Dialogs

Dialogs are the means in which an application can converse with a user.

Dialogs have many uses. As such many sorts of Dialogs are provided by Motif:

BulletinBoardDialog
- Allows customised Dialogs to be created.
ErrorDialog
- Alerts User to errors in the program.
SelectionDialog
- Selection from a list of options.
FileSelectionDialog
- Specialised Selection Dialog to select directories and files.
InformationDialog
- Program Information supplied.
PromptDialog
- Allows user to supply data to program.
QuestionDialog
- Yes/No type queries.
WarningDialog
- Warns User about a program mishap.
WorkingDialog
- Notifies user if program is busy.

To create a Dialog use one of the XmCreate.....Dialog() functions.

To make a Dialog appear in your program you must manage the widget.

To make one disappear you must unmanage it.

The use of many dialogs is very similar. We will look at a few specific Dialogs in detail. Others are similar (see Exercises).



Dave.Marshall@cm.cf.ac.uk
Tue May 24 16:52:56 BST 1994