Tk Library Source Code

Documentation
Login
Bounty program for improvements to Tcl and certain Tcl packages.


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

swaplist - A dialog which allows a user to move options between two lists

Table Of Contents

SYNOPSIS

package require Tcl 8.4
package require Tk 8.4
package require swaplist ?0.1?

::swaplist::swaplist pathName variable completeList selectedList ?options?

DESCRIPTION

This package provides a dialog which consists of 2 listboxes, along with buttons to move items between them and reorder the right list.

EXAMPLE

package require swaplist
namespace import swaplist::*

if {[swaplist .slist opts "1 2 3 4 5 6 7 8 9" "1 3 5"]} {
    puts "user chose numbers: $opts"
}

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category swaplist of the Tklib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

KEYWORDS

dialog, disjointlistbox, listbox

CATEGORY

Widget