int list(items [text] [caption] [x y] [timeout] [default] [flags] [hwndowner])
items - string consisting of list item strings delimited by line break characters ([]). Item that begins with & is initially selected.
text - text above the list. If items is "", listbox is not displayed, and you can use this function to display text.
caption - dialog title.
x and y - where to display the dialog. Negative - relative to the right or bottom edge. Default: 0 0 (screen center).
timeout - number of seconds to show dialog. Default: 0 (infinite). To stop countdown, click the list box.
default - return this value on timeout. Default: 0 (Cancel).
flags - combination of the following values: 1 - activate; 2 - numbered (each line begins with a number that function must return when that item is selected). Default: 0.
hwndowner (QM 2.2.1) - owner window handle. The dialog box will be on top of the owner window. It will be activated. The owner window, if belongs to the same thread, will be disabled. Default: 0.
Displays dialog box with list. Each line in items string adds one item to the list. Returns 1-based index of selected item, or 0 on Cancel.
Use function PopupMenu or DynamicMenu to show standard menu.
str s = "Line1[]Line2[]Line3" sel list(s "Lines") case 1 out "Line1" case 2 out "Line2" case 3 out "Line3" case else out "Cancel"