Version 5 of BWidget::ComboBox

Updated 2005-11-21 19:43:08

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 {}

Category Widget of the BWidget extension