Window-specific Options

Command-Line Name: -command, Database Name: command, Database Class; -

Specifies a Tcl command to associate with the button to the right. This command is invoked when mouse button 1 is released over the button window.

Command-Line Name: -clientbackground, Database Name: clientbackground, Database Class; -

Color, defines the background color for the entry to the left.

Command-Line Name: -selectcommand, Database Name: selectcommand, Database Class; -

Specifies a Tcl command to associate with the pop-up listbox. The selectcommand is invoked, when an item is selected in the listbox.

Command-Line Name: -histposition, Database Name: histposition, Database Class; -

Where the pop-up will appear in relation to the combobox. Possible values are »above« and »below«. Default value is »below«.

Command-Line Name: -histheight, Database Name: histheight, Database Class; -

Integer dimension. The height in rows of the contained listbox window.

Command-Line Name: -histlength, Database Name: histlength, Database Class; -

the maximum amount of listbox entries. The default value is »-1«, meaning unlimited.

Command-Line Name: -histwidth, Database Name: histwidth, Database Class; -

Integer dimension. The width in characters of the contained listbox.

Command-Line Name: -listtype, Database Name: listType, Database Class; -

The internal listbox. The kind of the internal listbox can be defined prior creation. listType is a static property.

The used list must conform to the Tk listbox interface.

Rtl_mlistbox, hugelist or listbox can be used.

Command-Line Name: -buttonstate, Database Name: buttonstate, Database Class; -

Specifies one of three states for the button: normal, active, or disabled. In normal state the button is displayed using the foreground and background options. The active state is typically used when the pointer is over the button. In active state the button is displayed using the activeForeground and activeBackground options. Disabled state means that the button should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the disabledForeground and background options determine how the button is displayed.

Window Command

A Window created through the rtl_combobox command exposes various functions. Using these functions has the following general form:

object.option(?arg, arg, ...?)

PathName is the same as the window path name. Option and the args determine the exact behavior of the command. The following commands are possible for this window:


Returns the current value of the configuration option given by option. Option may have any of the values accepted by the rtl_combobox command.

object.configure(?option? ?=value, option=value, ...?)

Query or modify the configuration options of the window. 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 window 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 rtl_combobox command.

object.delete( first ?last? )

Delete string range from the entryfield

object.histinsert( index ... )

Insert an item to the history list

object.entryset( string )

Set the entryfield completely.


Popup a listbox, if the button is pressed


Get the entryfield's content.


Invoked when return is pressed in the entryfield

object.insert( index string )

Insert an string at the given position in the entryfield



object.button-cmd-2( ?w? )

Pop down the history window



object.histget( ?index? )

Get history item at given position


get value from entryfield

object.findInCb( token )

Search for the given token inside the history list and set the associated entry to that item.


Clear the history list. Side-effect clear the contained listboxes while this listbox exists. Revision : 01/01/2009, Roger–Simplified