## MQWidget.ComboBox class

A combo box class.

Super classes: MQWidget.WidgetBase

### Property

get | set | Type | Name | Description
--- | --- | --- | --- | ---
x | x | int | currentIndex | a current index
x | x | int | numVisible | a number of visibility items in a pull down menu

### Method

Member | Description
--- | ---
ComboBox | Constructor.
addItem | Add an item.
deleteItem | Delete an item.
clearItems | Delete all items.
getItemCount | Get a number of items.
getItem | Get an item.
setItem | Set an item.
getItemTag | Get an item tag.
setItemTag | Set a tag.
addChangedEvent | Add an event when a current index has been changed.

ComboBox([parent])
Constructor.
  Parameters:
  MQWidget.WidgetBase | parent | - | A parent widget

addItem(text)
Add an item.
  Parameters:
  string | text | - | an item text
  Return value:
  int | - | an index of the added item

deleteItem(index)
Delete an item.
  Parameters:
  int | index | - | an index

clearItems
Delete all items.

getItemCount
Get a number of items.
  Return value:
  int | - | a number of items

getItem(index)
Get an item.
  Parameters:
  int | index | - | an index of an item
  Return value:
  string | - | a text of the item

setItem(index, text)
Set an item.
  Parameters:
  int | index | - | an index of an item
  string | text | - | a text of the item

getItemTag(index)
Get an item tag.
  Parameters:
  int | index | - | an index of an item
  Return value:
  int | - | a tag of the item

setItemTag(index, tag)
Set a tag.
  Parameters:
  int | index | - | an index of an item
  int | tag | - | a tag of the item

addChangedEvent(callback)
Add an event when a current index has been changed.
  Parameters:
  function(sender) | callback | - | callback function