Combobox
Author: Bryan Douglas Oakley
Date: 1998-01-01

## STANDARD OPTIONS

-background -borderwidth -cursor -font -foreground -height -highlightthickness -highlightbackground -maxheight -relief -selectbackground -selectborderwidth -selectforeground -state -textvariable

See the options manual entry for detailed descriptions of the above options.

## WIDGET-SPECIFIC OPTIONS

-command

Defines a command to be run whenver the value of the combobox changes. The command will have two values appended to it: the name of the window and the new value of the combobox.

-commandstate

One of ``normal’’ or ``disabled’‘. If set to ``disabled’’, the value of the -command option will not be evaluated when the value of the combobox changes.

-editable

A boolean value which specifies whether the entry widget of the combobox can be typed in. If false, values may only be set by selecting them from the dropdown list.

-height

Specifies the hight of the dropdown listbox, in number of lines. A value of zero will make the dropdown list just tall enough to hold all of the elements in the list. The height defaults to 10.

-image

Defines an image to use on the button used to drop down the list. If it is not specified it defaults to a small black triangle.

-maxheight

Sets the maximum height of the dropdown listbox, in the event -height is set to zero and there are a large number of items in the list. If this value is set to 0 (zero) the listbox will be as large as the total number of items in the listbox. The maxheight defaults to 10.

-value

Specifies the value for the combobox.

-width

Specifies an integer value indicating the desired width of the combobox entry widget, in average size characters of the widget’s font. If the value is less than or equal to zero, the widget picks a size just large enough to hold its current text.