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:

(option object ?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:

(cget object :option)

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

(configure object ?: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.

(delete object first ?last? )

Delete string range from the entryfield

(histinsert object index ... )

Insert an item to the history list

(entryset object string )

Set the entryfield completely.

(button-cmd object )

Popup a listbox, if the button is pressed

(get object )

Get the entryfield's content.

(return-pressed object )

Invoked when return is pressed in the entryfield

(insert object index string )

Insert an string at the given position in the entryfield

(destroy object )

Destructor

(button-cmd-2 object ?w? )

Pop down the history window

(init object )

Undocumented.

(histget object ?index? )

Get history item at given position

(entryget object )

get value from entryfield

(findInCb object token )

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

(histclear object )

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