xtd 0.2.0
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.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;
};
auto main() -> int {
application::run(form1 {});
}
static void run()
Begins running a standard application message loop on the current thread, without a form.
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
Represents a Windows control that displays a frame around a group of controls with an optional captio...
Definition group_box.hpp:37
@ location
Specifies that both the x and y coordinates of the control are defined.
Definition bounds_specified.hpp:30
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
Definition status_bar_panel_style.hpp:25
@ bottom
Bind control edges to the bottom of its container.
Definition anchor_styles.hpp:25
@ right
Bind control edges to the right of its container.
Definition anchor_styles.hpp:29
@ left
Bind control edges to the left of its container.
Definition anchor_styles.hpp:27
@ top
Bind control edges to the top of its container.
Definition anchor_styles.hpp:23
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:217