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

Method OnInitialise

Tools/SkinEditor/PropertyRegionTextTypeControl.cpp:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void PropertyRegionTextTypeControl::OnInitialise(
23 Control* _parent,
24 MyGUI::Widget* _place,
25 std::string_view /*_layoutName*/)
26 {
27 PropertyControl::OnInitialise(_parent, _place, "PropertyComboBoxControl.layout");
28
29 assignWidget(mName, "Name", false);
30 assignWidget(mComboBox, "ComboBox");
31
32 mComboBox->addItem("SimpleText");
33 mComboBox->addItem("EditText");
34
35 mComboBox->beginToItemFirst();
36
37 mComboBox->eventComboChangePosition +=
38 MyGUI::newDelegate(this, &PropertyRegionTextTypeControl::notifyComboChangePosition);
39 }
40
41 void PropertyRegionTextTypeControl::updateCaption()
42 {

Callers

nothing calls this directly

Calls 4

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
addItemMethod · 0.45
beginToItemFirstMethod · 0.45

Tested by

no test coverage detected