Go up one levelGo to Previous Go to Next

DoubleList

A DoubleList is an Itcl widget for displaying two ListboxWidgets with arrows between them for moving items back and forth or up and down. This widget is useful for selecting items from a long list of available items. The left and right listboxes are instances of the ListboxWidget(n) class and have the Itcl component names left and right .

Example:

 
itk_component add dlist { 
    DoubleList $w_.dtlist \ 
    -lefttitle "Keep" \ 
    -righttitle "Don't Keep" \ 
    -hscroll 1 \ 
    -updown 1 \ 
    -selectmode extended 
} 
pack $itk_component(dlist) -fill both -expand 1 
 
[$itk_component(dlist) component left] set_contents \ 
    {one two three four five six} 
[$itk_component(dlist) component right] set_contents \ 
    {seven eight nine ten}

See DoubleList(n) for more details.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory