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

Method notifyListSelectAccept

MyGUIEngine/src/MyGUI_ComboBox.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 void ComboBox::notifyListSelectAccept(ListBox* _widget, size_t _position)
123 {
124 mItemIndex = _position;
125 Base::setCaption(mItemIndex != ITEM_NONE ? mList->getItemNameAt(mItemIndex) : UString());
126
127 mDropMouse = false;
128 InputManager::getInstance().setKeyFocusWidget(this);
129
130 if (mModeDrop)
131 {
132 _resetContainer(false);
133
134 eventComboAccept(this, mItemIndex);
135 }
136 }
137
138 void ComboBox::notifyListChangePosition(ListBox* _widget, size_t _position)
139 {

Callers

nothing calls this directly

Calls 3

setCaptionFunction · 0.85
UStringFunction · 0.85
setKeyFocusWidgetMethod · 0.80

Tested by

no test coverage detected