Modern IDL by Michael Galloy

API documentation for example code

single page | use frames     summary     class     fields     routine details     file attributes

widgets/

mg_dialog_list.pro

includes main-level program

Modal dialog to present a user with a choice of a few items.

Routines

Routines from mg_dialog_list.pro

mg_dialog_list_event, event

Event handler for the dialog.

result = mg_dialog_list(choices, text [, dialog_parent=long] [, title=string])

Create a modal dialog to allow the user to select from some choices.

Routine details

top source mg_dialog_list_event

mg_dialog_list_event, event

Event handler for the dialog.

Parameters

event in required type=structure

event structure for the droplist and OK/Cancel buttons

top source mg_dialog_list

result = mg_dialog_list(choices, text [, dialog_parent=long] [, title=string])

Create a modal dialog to allow the user to select from some choices.

Return value

long, index into choices parameter where -1 indicates the user quit

Parameters

choices in required type=strarr

string array of choices

text in required type=string

message to user explaining the choice

Keywords

dialog_parent in optional type=long

widget identifier of the parent widget for the dialog

title in optional type=string

title to appear in title bar of the dialog's window

File attributes

Modification date: Mon Sep 7 21:15:50 2009
Lines: 44
Docformat: rst rst