Group: | GUI functions |
See also: | readvalue |
Function: | selectitem | |
Description: | opens a self defined menu box to ask for a choice. The choice may have to be confirmed or not (mode="single"). |
Usage: | i = selectitem(headline, items {, mode}) | |
Input: | ||
headline | a string | |
items | a vector of strings | |
mode | a string (only one option is "single") | |
Output: | ||
i | a number of selected item, 1 ... rows of items |
headline = "Please select" items = "linear" | "quadratic" | "log" i = selectitem(headline, items) i
A menu box opens where you read headline and are able to select one or more of the topics listed in items. By selecting OK a vector i is created containing a 1 at the position of a selected item and a 0 otherwise.
item = "choose data" | " plot data" head = "XploRe" task = selectitem(head,item,"single")
A menu box opens where you are able to select one or more of the topics listed in items. You do NOT have to pressto confirm the selection.