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");
client_size({640, 480});
group_box1.parent(*this);
group_box1.location({10, 10});
group_box1.size({305, 460});
group_box1.text("Group box 1");
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() {
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17