Bryan Oakley's combobox package is a library extension for Tcl/Tk version 8.0 or higher, written in pure Tcl/Tk code. Its download location is
http://www.purl.org/net/oakley/tcl/combobox/index.html
Tablelist supports interactive cell editing with the aid of the combobox widget implemented in the package mentioned above. The steps needed for using this widget for editing the cells of a given column are as follows:
tablelist::addOakleyCombobox
command described below.
columnconfigure
subcommand to set the given column's -editable
option to
true and its -editwindow
option
to the value returned by the command mentioned above. (Instead of
enabling the interactive cell editing in the whole column, you can also
invoke the tablelist's cellconfigure
subcommand to set the -editable
option for
individual cells of the given column to true.)
tablelist::addOakleyCombobox
Commandtablelist::addOakleyCombobox
- Register Bryan Oakley's
combobox widget for interactive cell editing
tablelist::addOakleyCombobox ?name?
-editwindow
column
configuration option. It may be any string that is different from
entry
, spinbox
, and
checkbutton
. The default is
combobox
. The command returns its
name
argument.
name
as the value of its
-editwindow
option, the embedded combobox widget
will be created with its -editable
option set to
1
. You can use the script corresponding to the
-editstartcommand
tablelist configurarion option to make the combobox non-editable or
define validations for its entry child (whose path name can be obtained
by invoking the tablelist widget's entrypath
subcommand,
or by appending .entry
to the path name of the
combobox widget, or, if using combobox version 2.3 or later, with the
aid of the combobox widget's subwidget
entry
subcommand), as well as for populating its
listbox component (by using the combobox widget's list
insert
subcommand).