The classic first application "Hello, World!" with xtd::forms::main_menu menu, xtd::sorms::status_bar control, and xtd::event_handler.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/forms/about_box>
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/main_menu>
#include <xtd/forms/message_box>
#include <xtd/forms/status_bar>
#include <xtd/forms/system_texts>
namespace hello_world_xtd_example {
class main_form :
public form {
public:
main_form() {
text(
"Hello world (xtd)");
status.parent(*this);
status.text("Welcome to xtd!");
}
private:
void on_exit_menu_click(
object& sender,
const event_args&
e) {
close();
}
void on_hello_menu_click(
object& sender,
const event_args& e) {
}
void on_about_menu_click(
object& sender,
const event_args& e) {
}
};
}
auto main()->int {
}