|
NAMEXmtDisplayErrorAndAsk(), XmtDisplayWarningAndAsk() - display an error or warning message, ask a yes-or-no question and return the user's response.SYNOPSIS#include <Xmt/Dialogs.h>
Boolean XmtDisplayErrorAndAsk(Widget w, String query_name, String message_default, String yes_default, String no_default, XmtButtonType default_button_default, String help_text_default) Boolean XmtDisplayWarningAndAsk(Widget w, String query_name, String message_default, String yes_default, String no_default, XmtButtonType default_button_default, String help_text_default) ARGUMENTSINPUTS
RETURNS True if the user clicked the Yes button; False if the user clicked the No button. DESCRIPTIONXmtDisplayErrorAndAsk() and XmtDisplayWarningAndAsk() are simplified interfaces to XmtAskForBoolean(). They display a modal dialog box displaying a warning or error message and asking the user for a yes or no response to a question. Then they enter an internal event loop until the user selects either the Yes or No buttons. They return True if the user answers Yes and False if the user answers with the No button. Unlike XmtAskForBoolean(), which returns False when the user clicks the Cancel button, these functions do not display a Cancel button, so they directly return the user's response to the question.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 available for the dialog, then the Help button will be insensitive. If you specify a query_name argument to these functions, then you can customize a number of attributes of the resulting dialogs through the resource database. See XmtAskForBoolean() for more information. Also note that these functions use the same cached dialog widgets that XmtAskForBoolean() does, and you can set resources on them as described for that function. SEE ALSOChapter 26, Simple Input Dialogs,XmtAskForBoolean(), XmtDisplayErrorMsg(), XmtDisplayErrorAndAsk(), XmtDisplayWarningMsg(), XmtDisplayWarningAndAsk().
Visit the GSP FreeBSD Man Page Interface. |