Version 6 of BWidget::ComboBox

Updated 2006-02-02 22:41:14

http://tcllib.sourceforge.net/BWman/ComboBox.html

[insert image of the widget here?]

Silas - 2005.08.25 A simple BWidget::ComboBox example:

  package require BWidget

  ComboBox .combo -values {zero one}
  pack .combo

  #changing the content of the combo
  .combo configure -values {two three}

  #return the index of the current item
  puts [.combo getvalue]

  #set a new index
  .combo setvalue @1

Silas - 2005.11.04

ComboBox doesn't have any clear method. [setvalue @-1] doesn't work too. If you want to clear the content of the Combo, just configure its text as {}:

  .combo configure -text {}


J. Tang provides a patch which "adds a new feature, '-autopost', that automatically posts the combobox as the user is typing into the entry. Furthermore, it will scroll the drop-down to entry that most closely matches the user's input." [L1 ]


Category Widget of the BWidget extension