demonstrates the use of xtd::forms::assert_dialog dialog.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/forms/application>
#include <xtd/forms/assert_dialog>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/diagnostics/debug_break>
class form1 :
public form {
public:
form1() {
text(
"Assert dialog example");
dialog.
message(
"Index must be > 0");
dialog.stack_frame(
csf_);
switch(dialog.show_sheet_dialog(*this)) {
default: break;
}
};
}
private:
};
auto main()->int {
}