tk_sortdialog           Jan 2001           Ying-Wan Lam           tkgui Function
NAME
tk_sortdialog - dialog for reranging items in a vector or a list.
CALLING SEQUENCE
[result]=tk_itemsdialog(items)
[result]=tk_itemsdialog(title,items)
[result]=tk_itemsdialog(title,labels,items)
PARAMETERS
-
title
: vector of strings, title for the popup window.
-
labels
: vector of strings. It should have the same number of elements as 'items'. If provided, the function will use the strings in 'labels' as labels shown in the dialog window (see examples below).
-
items
: List or vector, containing the items to be sorted.
-
result
: The result of rearrangement.
DESCRIPTION
An interface to rearranging the elements of a vector or a list. Type tk_sortdialog() to see examples.
EXAMPLES
animals = ['zebra'; 'penguin'; 'dog'; 'cat']
newanimals = tk_sortdialog(names)
r1=list('Robert','(312)-456-7890','3-24-1980')
r2=list('Mary','(213)-654-3210', '7-17-1967')
r3=list('Sam','(718)-213-4456','2-29-1996')
lb=[r1(1);r2(1);r3(1)]
newlist = tk_sortdialog('Please Sort',lb,list(r1,r2,r3))
SEE ALSO
tk_itemsdialog