selects the given item in the list.
| 112 | |
| 113 | // selects the given item in the list. |
| 114 | void UIComboBox::SelectItem(const UIItem *item) { |
| 115 | int i; |
| 116 | |
| 117 | for (i = 0; i < m_nItems; i++) { |
| 118 | if (item == m_ItemList[i]) { |
| 119 | SetSelectedIndex(i); |
| 120 | break; |
| 121 | } |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // returns the item at listbox index given. |
| 126 | UIItem *UIComboBox::GetItem(int index) const { return (index < m_nItems) ? m_ItemList[index] : NULL; } |
no outgoing calls
no test coverage detected