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

ToBeReviewed/WIDGET/

xquestion.pro

A small widget who ask a question and give an answer. WARNING: For a binary question with yes/no answer use DIALOG_MESSAGE.

Routine summary

xquestion_event, event

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

topxquestion_event

xquestion_event, event

Return value

Parameters

event       

Examples

Version history

Version

$Id: xquestion.pro 157 2006-08-21 09:01:50Z navarro $

History

Known issues

Restrictions

Other attributes

Uses routines

Statistics

McCabe cyclic 1
McCabe essential 1
McCabe modular design 1

topxquestion Widget

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

Return value

answer: a string

Parameters

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        type: string

A string proposing a answer

Keywords

CHKWIDGET       

Active this keyword if you want that xquestion check if managed widget are present. If not, xquestion do not open a widget but print the question in the IDL window.

_extra       

Used to pass your keywords

Examples

IDL> help, xquestion('Postscript name') STRING = 'toto.ps'

Version history

Version

$Id: xquestion.pro 157 2006-08-21 09:01:50Z navarro $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) 13/10/1999

Known issues

Restrictions

The function does not return to its caller until the user press "Enter" key in the widget.

Statistics

McCabe cyclic 10
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.