<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/WIDGET/

xquestion.pro

Routine summary

xquestion_event, event

NAME:xquestion PURPOSE: a small widget who ask a question and give an answer.

result = xquestion(question, proposedanswer, CHKWIDGET=CHKWIDGET, _extra=_extra)

topxquestion_event

xquestion_event, event

NAME:xquestion PURPOSE: a small widget who ask a question and give an answer. WARNING: For a binary question with yes/no answer use DIALOG_MESSAGE. CATEGORY: widget CALLING SEQUENCE: answer = xquestion(question[,proposedanswer]) INPUTS: question: a scalar string or a array of string. If this argument is set to : + an array of strings: each array element is displayed as a separate line of text. + a scalar string: we are looking for the "separate line character" '!C' proposedanswer: a string proposing a answer KEYWORD PARAMETERS: those from WIDGET_BASE and WIDGET_TEXT /CHKWIDGET: active this keyword if you whant that xquestion check if managed widget are present. If not, xquestion do not open a widget but print the question in the IDL window. OUTPUTS: answer: a string COMMON BLOCKS: none (we use a "false widget") SIDE EFFECTS: The function does not return to its caller until the user press "Enter" key in the widget. RESTRICTIONS: EXAMPLE: IDL> help, xquestion('Postscript name') STRING = 'toto.ps'

Parameters

event       

topxquestion

result = xquestion(question, proposedanswer, CHKWIDGET=CHKWIDGET, _extra=_extra)

Parameters

question       

proposedanswer       

Keywords

CHKWIDGET       

_extra       

Produced by IDLdoc 2.0.