xtd_forms was merged into xtd.
- Contains common controls, containers, menu, toolbar, components, various dialogs, ...
- Easy catch control events by using event and delegates classes.
- All controls are natives (win32 on windows, cocoa on macOS, gtk+3 on linux).
- ...
For more information see documentations (website) and Reference Guide.
The following examples "Hello, world!" show how use form and button control, catch event click and show a message box.
hello_world_message_box.cpp
#include <xtd/xtd.forms>
using namespace xtd::forms;
int main() {
button button1;
button1.text("Click me");
button1.location({10, 10});
button1.click += [] {
message_box::show("Hello, World!");
};
form form1;
form1.text("Hello world (message_box)");
form1.controls().push_back(button1);
application::run(form1);
}
CMakeLists.txt:
cmake_minimum_required(VERSION 3.3)
project(hello_world_message_box)
find_package(xtd.forms REQUIRED)
add_sources(hello_world_message_box.cpp)
target_type(GUI_APPLICATION)
For more examples see examples
Tutorial provide a tutorial to cover the basics needed to create xtd_forms applications.
Before running examples you must download and install xtd.forms. To download and install it read downloads file.