xtd 0.2.0
check_boxes.cpp

demonstrates the use of xtd::forms::check_boxes check_box object collection.

Windows

macOS

Gnome

#include <xtd/drawing/texts>
#include <xtd/forms/application>
#include <xtd/forms/check_boxes>
#include <xtd/forms/group_box>
#include <xtd/forms/form>
using namespace xtd::forms;
auto main() -> int {
auto main_form = form::create("Check boxes example");
auto font_group_box = group_box::create(main_form, xtd::drawing::texts::font(), {10, 10}, {150, 180});
auto bold_check_box = check_boxes::bold(font_group_box, {20, 20});
auto italic_check_box = check_boxes::italic(font_group_box, {20, 50});
auto underline_check_box = check_boxes::underline(font_group_box, check_state::unchecked, {20, 80});
auto strikeout_check_box = check_boxes::strikeout(font_group_box, false, check_state::unchecked, {20, 110});
application::run(main_form);
}
static xtd::string font()
Gets a system-defined text that has a string value of "&Font". This field is constant.
static void run()
Begins running a standard application message loop on the current thread, without a form.
static check_box strikeout()
Create a system-defined check_box that represent strikeout check_box.
static check_box italic()
Create a system-defined check_box that represent italic check_box.
static check_box bold()
Create a system-defined check_box that represent bold check_box.
static check_box underline()
Create a system-defined check_box that represent underline check_box.
static form create()
A factory to create an xtd::forms::form.
static group_box create()
A factory to create an xtd::forms::group_box.
@ unchecked
The control is unchecked.
Definition check_state.hpp:25
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219