| 20 | } |
| 21 | |
| 22 | void PropertyAlignControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view /*_layoutName*/) |
| 23 | { |
| 24 | PropertyControl::OnInitialise(_parent, _place, "PropertyComboBoxControl.layout"); |
| 25 | |
| 26 | assignWidget(mName, "Name", false); |
| 27 | assignWidget(mComboBox, "ComboBox"); |
| 28 | |
| 29 | mComboBox->addItem("Default"); |
| 30 | mComboBox->addItem("Stretch"); |
| 31 | mComboBox->addItem("Center"); |
| 32 | |
| 33 | mComboBox->addItem("Left Top"); |
| 34 | mComboBox->addItem("Left Bottom"); |
| 35 | mComboBox->addItem("Left VStretch"); |
| 36 | mComboBox->addItem("Left VCenter"); |
| 37 | |
| 38 | mComboBox->addItem("Right Top"); |
| 39 | mComboBox->addItem("Right Bottom"); |
| 40 | mComboBox->addItem("Right VStretch"); |
| 41 | mComboBox->addItem("Right VCenter"); |
| 42 | |
| 43 | mComboBox->addItem("HStretch Top"); |
| 44 | mComboBox->addItem("HStretch Bottom"); |
| 45 | mComboBox->addItem("HStretch VStretch"); |
| 46 | mComboBox->addItem("HStretch VCenter"); |
| 47 | |
| 48 | mComboBox->addItem("HCenter Bottom"); |
| 49 | mComboBox->addItem("HCenter VStretch"); |
| 50 | mComboBox->addItem("HCenter VCenter"); |
| 51 | mComboBox->beginToItemFirst(); |
| 52 | |
| 53 | mComboBox->eventComboChangePosition += |
| 54 | MyGUI::newDelegate(this, &PropertyAlignControl::notifyComboChangePosition); |
| 55 | } |
| 56 | |
| 57 | void PropertyAlignControl::updateCaption() |
| 58 | { |
nothing calls this directly
no test coverage detected