#include <xtd/forms/application>
#include <xtd/forms/emoticons>
#include <xtd/forms/form>
#include <xtd/forms/label>
#include <xtd/forms/list_box>
auto main() -> int {
auto main_form = form::create("Emoticons example");
main_form.client_size({500, 400}).
padding(10);
auto emoticon_label = label::create(main_form, "");
emoticons_list_box.dock(dock_style::left).width(200);
for (
const auto&
emoticon : emoticons::get_emoticons())
emoticons_list_box.selected_value_changed += [&] {
emoticon_label.text(as<emoticon>(emoticons_list_box.selected_item().tag()).to_string());
};
emoticons_list_box.selected_index(0);
application::run(main_form);
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10