The done descriptor in the following menu definition file executes getitems when the user presses ENTER (note that the menu
is multiselect):
|
Menu="Example"
multiselect=TRUE
done=`getitems ":" | message`
name="Item 1"
action=`message "You selected item 1"`
name="Item 2"
lininfo="This is item 2"
action=`message "You selected item 2"`
name="Item 3"
action=`message "You selected item 3"`
|
If a user marked all three items in this menu, pressing ENTER would cause the following string to be displayed on the message line:
|
Item 1:This is item 2:Item 3
|
|