Show a modal message box with either Ok or Yes and No, and optionally Cancel ! @return indicates which button was pressed */
| 289 | @return indicates which button was pressed |
| 290 | */ |
| 291 | inline MessageBoxResult ShowMessageBox( const TranslatableString &message, |
| 292 | MessageBoxOptions options = {}) |
| 293 | { |
| 294 | if (auto p = Get()) |
| 295 | return p->DoMessageBox(message, std::move(options)); |
| 296 | else |
| 297 | return MessageBoxResult::None; |
| 298 | } |
| 299 | |
| 300 | //! Create and display a progress dialog |
| 301 | /*! |