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.
enable_debug.cpp

The following code example demonstrate the use of enable_debug class.

Windows
enable_debug_w.png

enable_debug_wd.png
macOS
enable_debug_m.png

enable_debug_md.png
Gnome
enable_debug_g.png

enable_debug_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("Enable debug example");
name("form1");
button1.auto_repeat(true);
button1.auto_size(true);
button1.location({10, 10});
button1.parent(*this);
button1.text("click-me");
button1.name("button1");
text_box1.location({10, 50});
text_box1.parent(*this);
text_box1.text("Text box");
text_box1.name("text_box1");
}
private:
text_box text_box1;
};
int main() {
application::run(form1());
}