xtd 0.2.0
Loading...
Searching...
No Matches
trace_message_box.cpp

demonstrates the use of xtd::forms::trace_message_box dialog.

Windows

macOS

Gnome

#define TRACE
#include <xtd/xtd>
class form_main : public form {
public:
form_main() {
button_.parent(*this);
button_.location({10, 10});
button_.text("Error...");
button_.click += delegate_ {
trace_message_box::show(*this, "An unknown process error occured.");
};
}
static auto main() {
auto tf = trace_form {};
}
private:
button button_;
};
startup_(form_main::main);
static void run()
Begins running a standard application message loop on the current thread, without a form.
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168
#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