Next: The prompt.c program Up: Dialogs Previous: Unwanted Dialog Buttons

The PromptDialog Widget

The PromptDialog allows the user to enter text.

We will typically need to set two resources of a PromptDialog widget.

XmNselectionLabelString
- the prompt message.
XmNtextString
- the default response string.

The function XmCreatePromptDialog() instantiates the Dialog.

Note: That a Prompt Dialog is based on the SelectionBox widget and so we must include <Xm\SelectioB.h>



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