xtd 0.2.0
hello_world_message_box.cpp

The classic first application "Hello, World!" with xtd::forms::message_box control.

Windows
hello_world_message_box_w.png

hello_world_message_box_wd.png
macOS
hello_world_message_box_m.png

hello_world_message_box_md.png
Gnome
hello_world_message_box_g.png

hello_world_message_box_gd.png
#include <xtd/xtd>
using namespace xtd::forms;
class main_form : public form {
public:
main_form() {
text("Hello world (message_box)");
button1.location({10, 10});
button1.parent(*this);
button1.text("&Click me");
button1.click += [] {
message_box::show("Hello, World!");
};
}
private:
};
auto main()->int {
application::run(main_form());
}