xtd 0.2.0
Loading...
Searching...
No Matches
toggle_buttons.cpp

demonstrates the use of xtd::forms::toggle_buttons toggle_button object collection.

Windows

macOS

Gnome

#include <xtd/drawing/texts>
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/group_box>
#include <xtd/forms/toggle_buttons>
using namespace xtd::forms;
auto main() -> int {
auto form_main = form::create("toggle buttons example");
auto group_box_alignment = group_box::create(form_main, xtd::drawing::texts::alignment(), {10, 10}, {150, 240});
auto toggle_button_align_left = toggle_buttons::align_left(group_box_alignment, false, check_state::unchecked, {20, 20});
auto toggle_button_align_right = toggle_buttons::align_right(group_box_alignment, false, check_state::unchecked, {20, 70});
auto toggle_button_centered = toggle_buttons::centered(group_box_alignment, false, check_state::unchecked, {20, 120});
auto toggle_button_justified = toggle_buttons::justified(group_box_alignment, false, check_state::unchecked, {20, 170});
toggle_button_align_left.checked(true);
application::run(form_main);
}
static xtd::string alignment()
Gets a system-defined text that has a string value of "Alignment". This field is constant.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12