|
NAMEXmtAskForString() - use a dialog box to prompt the user for a string and return the user's response.SYNOPSIS#include <Xmt/Dialogs.h>
Boolean XmtAskForString(Widget w, String query_name, String ompt_default, String buffer_in_out, int buffer_length, String help_text_default) ARGUMENTSINPUTS
True if the user clicked the Ok button to dismiss the dialog; False if the user clicked the Cancel button. DESCRIPTIONXmtAskForString() displays an application modal dialog box, of the type created by XmCreatePromptDialog(), to prompt the user to input a string. It processes events in a local event loop until the user selects either the Ok or Cancel button of the dialog, and then returns with the user's input, if any, in a programmer specified buffer.If help text is found in the resource database for this dialog, or if the help_text_default argument is non-NULL, then this text will be displayed (using XmtDisplayInformation()) when the user clicks on the Help button. If there is no help for the dialog, then the Help button will be made insensitive. Customization To allow dialog customization, XmtAskForString() looks up the following subpart resources of the shell specified by w. The name of the subpart is given by the argument query_name, and the class of the subpart is ``XmtStringDialog''. These subpart resources are looked up every time XmtAskForString() is called, not simply when the widgets are created.
WIDGETS XmtAskForString() creates a XmDialogShell widget named ``xmtStringDialogShell'', and an XmSelectionBox widget named ``xmtStringDialog'' as a child of that shell. Once this dialog has been created, it is cached for reuse by subsequent calls. SEE ALSOChapter 26, Simple Input Dialogs,XmtAskForInteger(), XmtAskForDouble(), XmtAskForBoolean(), XmtAskForFile(), XmtAskForFilename(), XmtAskForItem(), XmtAskForItemNumber().
Visit the GSP FreeBSD Man Page Interface. |