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

demonstrates the use of xtd::forms::group_box container.

Windows

macOS

Gnome

#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/group_box>
using namespace xtd::forms;
class form1 : public form {
public:
form1() {
text("Group box example");
location({200, 200});
client_size({640, 480});
group_box1.parent(*this);
group_box1.location({10, 10});
group_box1.size({305, 460});
group_box1.anchor(anchor_styles::top | anchor_styles::left | anchor_styles::bottom);
group_box1.text("Group box 1");
group_box2.parent(*this);
group_box2.location({325, 10});
group_box2.size({305, 460});
group_box2.anchor(anchor_styles::top | anchor_styles::left | anchor_styles::bottom | anchor_styles::right);
}
private:
group_box group_box1;
group_box group_box2;
};
auto main() -> int {
application::run(form1 {});
}
Represents a window or dialog box that makes up an application's user interface.
Definition form.h:54
Represents a Windows control that displays a frame around a group of controls with an optional captio...
Definition group_box.h:37
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12