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

Method OnInitialise

Tools/SkinEditor/PropertyRegionTypeControl.cpp:22–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void PropertyRegionTypeControl::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("SubSkin");
33 mComboBox->addItem("TileRect");
34 mComboBox->addItem("TileRect Horz");
35 mComboBox->addItem("TileRect Vert");
36
37 mComboBox->beginToItemFirst();
38
39 mComboBox->eventComboChangePosition +=
40 MyGUI::newDelegate(this, &PropertyRegionTypeControl::notifyComboChangePosition);
41 }
42
43 void PropertyRegionTypeControl::updateCaption()
44 {

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