The following code example demonstrate the use of split_container container.
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text("Split container example");
client_size({300, 300});
split_container_left.parent(*this);
split_container_left.dock(dock_style::fill);
split_container_left.panel1().back_color(color::light_blue);
split_container_left.splitter_distance(70);
split_container_right.dock(dock_style::fill);
split_container_right.panel2().back_color(color::light_yellow);
split_container_right.parent(split_container_left.panel2());
split_container_right.splitter_distance(160);
split_container_center.dock(dock_style::fill);
split_container_center.panel1().back_color(color::pink);
split_container_center.panel2().back_color(color::light_green);
split_container_center.parent(split_container_right.panel1());
split_container_center.splitter_distance(150);
}
private:
};
int main() {
application::run(form1());
}
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition bitmap.h:11