demonstrates the use of xtd::forms::trace_message_dialog dialog.
- Windows
-
- macOS
-
- Gnome
-
#define TRACE
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
button_show_debug_message.location({10, 10});
button_show_debug_message.parent(*this);
button_show_debug_message.text("Error...");
button_show_debug_message.auto_size(true);
button_show_debug_message.click +=
delegate_ {
auto dialog = trace_message_dialog {};
dialog.message("An unknown process error occured.");
dialog.show_sheet_dialog(*this);
};
}
private:
button button_show_debug_message;
};
auto main() -> int {
auto tf = trace_form {};
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