interactive Xwindow choices through toggle buttons
rep=x_choices(title,items)
vector of strings, title for the popup window.
a list of items items=list(item1,...,itemn)
, where each item
is also a list of the following type : item=list('label',default_choice,choices)
. default_choice
is an integer which gives the default toggle on entry and choices
is a row vector of strings which gives the possible choices.
an integer vector which gives for each item the number of the selected toggle. If user exits dialog with "cancel" button rep
is set to []
.
Select items through toggle lists and return in rep
the selected
items
Type x_choices()
to see an example.