| 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 | { |
nothing calls this directly
no test coverage detected