tixComboBox - Create and manipulate tixComboBox widgets


SYNOPSIS

tixComboBox pathName ?options?

SUPER-CLASS

The TixComboBox
class is derived from the TixLabelWidget
class and inherits all the commands, options and subwidgets of its super-class.

STANDARD OPTIONS

TixComboBox supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.

WIDGET-SPECIFIC OPTIONS


Name:		anchor
Class:		Anchor
Switch:		-anchor


Name:		arrowBitmap
Class:		ArrowBitmap
Switch:		-arrowbitmap


Name:		browseCmd
Class:		BrowseCmd
Switch:		-browsecmd


Name:		command
Class:		Command
Switch:		-command


Name:		crossBitmap
Class:		CrossBitmap
Switch:		-crossbitmap


Name:		disableCallback
Class:		DisableCallback
Switch:		-disablecallback


Name:		disabledforeground
Class:		DisabledForeground
Switch:		-disabledforeground


Name:		dropdown
Class:		Dropdown
Switch:		-dropdown


Name:		editable
Class:		Editable
Switch:		-editable


Name:		fancy
Class:		Fancy
Switch:		-fancy


Name:		grab
Class:		Grab
Switch:		-grab


Name:		historyLimit
Class:		historyLimit
Switch:		-historylimit
Alias:		-histlimit


Name:		history
Class:		History
Switch:		-history


Name:		label
Class:		Label
Switch:		-label


Name:		labelSide
Class:		LabelSide
Switch:		-labelside


Name:		listCmd
Class:		listCmd
Switch:		-listcmd


Name:		listWidth
Class:		listWidth
Switch:		-listwidth


Name:		prunehistory
Class:		PruneHistory
Switch:		-prunehistory


Name:		selection
Class:		Selection
Switch:		-selection


Name:		selection
Class:		Selection
Switch:		-selection


Name:		selectMode
Class:		SelectMode
Switch:		-selectmode


Name:		state
Class:		State
Switch:		-state


Name:		tickBitmap
Class:		tickBitmap
Switch:		-tickbitmap


Name:		validateCmd
Class:		ValidateCmd
Switch:		-validatecmd


Name:		value
Class:		Value
Switch:		-value


Name:		variable
Class:		Variable
Switch:		-variable

SUBWIDGETS


Name:		arrow
Class:		Button


Name:		cross
Class:		Button


Name:		entry
Class:		Entry


Name:		label
Class:		Label


Name:		listbox
Class:		Listbox


Name:		slistbox
Class:		TixScrolledListBox


Name:		tick
Class:		Button

DESCRIPTION

The tixComboBox command creates a new window (given by the pathName argument) and makes it into a tixComboBox widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ComboBox such as its cursor and relief. The Tix ComboBox widget is similar to the combo box control in MS Windows. The user can select a choice by either typing in the entry subwdget or selecting from the listbox subwidget.

WIDGET COMMANDS

The tixComboBox command creates a new Tcl command whose name is the may be used to invoke various operations on the widget. It has the following general form:

pathName option ?arg arg ...?

PathName is the name of the command, which is the same as the determine the exact behavior of the command. The following commands are possible for ComboBox widgets:
pathName addhistory string
Add the string to the beinning of the listbox.
pathName appendhistory string
Append the string to the end of the listbox.
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the tixComboBox command.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the tixComboBox command.
pathName flash index string
Flashes the ComboBox. flash is usually called by a -command procedure to acknowledge to the user that he has selected a value for the ComboBox.
pathName insert index string
Insert the string into the listbox at the specified index. index must be a valid listbox index.
pathName pick index
Set the (index)th item in the listbox to be the current value of the ComboBox. As a result, the value of the ComboBox is changed and the TCL command sepcified by the -command option will be called.
pathName subwidget name ?args?
When no options are given, returns the pathname of the subwidget of the specified name. When options are given, the widget command of the specified subwidget will be called with these options.

BINDINGS

BUGS

Starting from Tix vetsion 4.0, the default -value of the ComboBox is the empty string. If you want the ComboBox to show a string by default, you must configure its -value option explicitly.

KEYWORDS

Tix(n), ComboBox(n), listbox(n)
Last modified Sun Jan 19 22:34:20 EST 1997 --- Serial 853731296