demonstrates the use of xtd::forms::assert_dialog dialog.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Assert dialog example");
controls().push_back(button1);
button1.location({10, 10});
button1.auto_size(true);
button1.text("assert...");
auto dialog = assert_dialog {};
dialog.message("Index must be > 0");
switch(dialog.show_sheet_dialog(*this)) {
case forms::dialog_result::abort: application::exit(); break;
case forms::dialog_result::retry: diagnostics::debugger::debug_break(); break;
default: break;
}
};
}
private:
button button1;
};
auto main() -> int {
application::run(form1 {});
}
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:900