tk_choices1           Jan 2001           Ying-Wan Lam           tkgui Function
NAME
tk_choices1 - replacement of x_choices, interactive choices using tk radio buttons
CALLING SEQUENCE
rep=tk_choices1(title,items,align)
PARAMETERS
-
title
: vector of strings, title for the popup window.
-
items
: 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.
-
align
: boolean, whether the items in different rows should be aligned.
-
rep
: 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 [].
DESCRIPTION
Select items through radio buttons and return in rep the selected items
EXAMPLE
l1=list('choice 1',1,['toggle c1','toggle c2','toggle c3']);
l2=list('choice 2',2,['toggle d1','toggle d2','toggle d3']);
l3=list('choice 3',3,['toggle e1','toggle e2']);
rep=tk_choices1('Toggle Menu',list(l1,l2,l3));
SEE ALSO
x_choices, tk_choices