xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
group_box.cpp

The following code example demonstrate the use of group_box control.

Windows

macOS

Gnome

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