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

Method OnInitialise

Tools/EditorFramework/DataListBaseControl.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24
25 void DataListBaseControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view _layoutName)
26 {
27 Control::OnInitialise(_parent, _place, _layoutName);
28
29 mListBoxControl = findControl<ListBoxDataControl>();
30
31 if (mListBoxControl != nullptr)
32 {
33 mListBoxControl->setEnableChangePosition(true);
34 mListBoxControl->eventChangePosition.connect(this, &DataListBaseControl::notifyChangePosition);
35 mListBoxControl->eventChangeName.connect(this, &DataListBaseControl::notifyChangeName);
36 }
37 }
38
39 bool DataListBaseControl::checkCommand(bool _result)
40 {

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45

Tested by

no test coverage detected