demonstrates the use of xtd::forms::form control with unicode text.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/screen>
auto main()->int {
auto colored_forms = std::vector<std::unique_ptr<form>> {};
auto form_main = form::create(
"Main Form",
point {screen::primary_screen().working_area().width() - 340, 40});
auto create_button = button::create(form_main, "Create", {10, 10});
create_button.click += [&] {
auto colored_form = std::make_unique<form>();
colored_forms.push_back(std::move(colored_form));
};
application::run(form_main);
}