#include <xtd/xtd>
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 {
}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Represents the menu structure of a form.
Definition main_menu.hpp:42
static xtd::string help()
Gets a system-defined text that has a string value of "&Help". This field is constant.
static xtd::string file()
Gets a system-defined text that has a string value of "&File". This field is constant.
static xtd::string exit()
Gets a system-defined text that has a string value of "E&xit". This field is constant.
static xtd::string about()
Gets a system-defined text that has a string value of "&About". This field is constant.
@ e
The E key.
Definition console_key.hpp:96
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8