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

Method OnInitialise

Tools/SkinEditor/SeparatorListControl.cpp:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 FACTORY_ITEM_ATTRIBUTE(SeparatorListControl)
27
28 void SeparatorListControl::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
41 mListBoxControl->setDataInfo("Skin", "Separator", "Name");
42 }
43 }
44
45}

Callers

nothing calls this directly

Calls 4

setReplaceColourNameMethod · 0.80
setDataInfoMethod · 0.45

Tested by

no test coverage detected