The following code example demonstrate the use of group_box control.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
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:
};
int main() {
application::run(form1());
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17