| 177 | } |
| 178 | |
| 179 | void EnumBinderBase::Set(int value) { |
| 180 | if (auto rb = dynamic_cast<wxRadioBox*>(GetWindow())) |
| 181 | rb->SetSelection(value); |
| 182 | else if (auto rb = dynamic_cast<wxComboBox*>(GetWindow())) |
| 183 | rb->SetSelection(value); |
| 184 | else |
| 185 | throw agi::InternalError("Control type not supported by EnumBinder"); |
| 186 | } |
| 187 | |
| 188 | bool StringBinder::TransferFromWindow() { |
| 189 | wxWindow *window = GetWindow(); |
no test coverage detected