xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
debug_form.cpp

The following code example demonstrate the use of debug_form form.

Windows
debug_form_w.png

debug_form_wd.png
macOS
debug_form_m.png

debug_form_md.png
Gnome
debug_form_g.png

debug_form_gd.png
#define DEBUG // Force debug mode even if example is builded in release.
#include <xtd/xtd>
using namespace xtd::forms;
class form1 : public form {
public:
form1() {
text("Debug form example");
button1.auto_repeat(true);
button1.auto_size(true);
button1.location({10, 10});
button1.parent(*this);
button1.text("Write line...");
button1.click += [&] {
static int counter = 0;
xtd::diagnostics::debug::write_line("Write line {}...", ++counter);
};
}
private:
};
int main() {
application::run(form1());
}