MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyListMouseItemActivate

Method notifyListMouseItemActivate

MyGUIEngine/src/MyGUI_ComboBox.cpp:169–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 }
168
169 void ComboBox::notifyListMouseItemActivate(ListBox* _widget, size_t _position)
170 {
171 mItemIndex = _position;
172 Base::setCaption(mItemIndex != ITEM_NONE ? mList->getItemNameAt(mItemIndex) : UString());
173
174 InputManager::getInstance().setKeyFocusWidget(this);
175
176 if (mModeDrop)
177 {
178 _resetContainer(false);
179
180 eventComboAccept(this, mItemIndex);
181 }
182 }
183
184 void ComboBox::notifyMouseWheel(Widget* _sender, int _rel)
185 {

Callers

nothing calls this directly

Calls 3

setCaptionFunction · 0.85
UStringFunction · 0.85
setKeyFocusWidgetMethod · 0.80

Tested by

no test coverage detected