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

Method OnInitialise

Tools/SkinEditor/RegionListControl.cpp:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 FACTORY_ITEM_ATTRIBUTE(RegionListControl)
27
28 void RegionListControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view _layoutName)
29 {
30 Control::OnInitialise(_parent, _place, _layoutName);
31
32 mListBoxControl = findControl<ListBoxDataControl>();
33
34 if (mListBoxControl != nullptr)
35 {
36 mListBoxControl->setEnableChangePosition(false);
37 mListBoxControl->setReplaceColourName("ColourDisabled");
38
39 mListBoxControl->addPropertyNameEnabled("Visible");
40 mListBoxControl->addPropertyNameEnabled("Enable");
41
42 mListBoxControl->setDataInfo("Skin", "Region", "Name");
43 }
44 }
45
46}

Callers

nothing calls this directly

Calls 4

setReplaceColourNameMethod · 0.80
setDataInfoMethod · 0.45

Tested by

no test coverage detected