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

demonstrates the use of xtd::forms::radio_buttons radio_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/radio_buttons>
using namespace xtd::forms;
auto main() -> int {
auto form_main = form::create("Radio buttons example");
auto group_box_alignment = group_box::create(form_main, xtd::drawing::texts::alignment(), {10, 10}, {150, 180});
auto radio_button_align_left = radio_buttons::align_left(group_box_alignment, true, {20, 20});
auto radio_button_align_right = radio_buttons::align_right(group_box_alignment, false, {20, 50});
auto radio_button_centered = radio_buttons::centered(group_box_alignment, false, {20, 80});
auto radio_button_justified = radio_buttons::justified(group_box_alignment, false, {20, 110});
application::run(form_main);
}
static xtd::ustring 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