tkgui Function
Last update : 22/2/2006

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

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,