IupListDialog

Definition: include pGUI.e

object res = IupListDialog(integer seltype, string title, sequence options, integer isel, maxCols, maxLines)
Description: Shows a modal dialog to select items from a simple or multiple selection list.

seltype: 1=simple selection; 2=multiple selection
title: Text for the dialog’s title
options: List of options.
isel: Initial selected item when type=1. starts at 1
maxCols: number of visible columns in the list
maxLines: number of visible lines in the list

Returns: When type=1, the function returns the number of the selected option (an integer, starts at 1), or -1 if the user cancels the operation.
When type=2, the function returns -1 when the user cancels the operation. If the user does not cancel the operation the function returns a sequemce of (1-based) indexes corresponding to the selected options.
Notes: The dialog uses a global attribute called "PARENTDIALOG" as the parent dialog if it is defined.
It also uses a global attribute called "ICON" as the dialog icon if it is defined.
Example:
See Also: IupMessage, IupGetFile, IupAlarm