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

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

Windows

macOS

Gnome

#define DEBUG
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/debug_form>
#include <xtd/forms/debug_message_box>
#include <xtd/forms/form>
#include <xtd/startup>
using namespace xtd::forms;
class form_main : public form {
public:
form_main() {
button_.parent(*this);
button_.location({10, 10});
button_.text("Error...");
button_.click += [&] {
debug_message_box::show(*this, "An unknown process error occured.");
};
}
static auto main() {
auto df = debug_form {};
application::run(form_main {});
}
private:
button button_;
};
startup_(form_main::main);
Represents a Windows button control.
Definition button.hpp:49
virtual drawing::point location() const noexcept
Gets the coordinates of the upper-left corner of the control relative to the upper-left corner of its...
Represents a form that displays debug form. This class cannot be inherited.
Definition debug_form.hpp:36
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
control & parent(const control &value) override
Sets the parent container of the control.
#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:175
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12