xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
panel.cpp

The following code example demonstrate the use of panel container.

Windows
panel_w.png

panel_wd.png
macOS
panel_m.png

panel_md.png
Gnome
panel_g.png

panel_gd.png
#include <xtd/xtd>
using namespace xtd;
using namespace xtd::forms;
class form1 : public form {
public:
form1() {
text("Panel example");
location({200, 200});
client_size({640, 480});
panel1.parent(*this);
panel1.border_style(forms::border_style::fixed_single);
panel1.location({10, 10});
panel1.size({305, 460});
panel2.parent(*this);
panel2.border_style(forms::border_style::fixed_3d);
panel2.location({325, 10});
panel2.size({305, 460});
}
private:
panel panel1;
panel panel2;
};
int main() {
application::run(form1());
}