The following code example demonstrate the use of splitter control.
#include <xtd/xtd>
namespace examples {
class form1 : public form {
public:
form1() {
text("Splitter example");
client_size({300, 300});
controls().push_back_range({panel_fill, splitter_top, panel_top, splitter_right, panel_right, splitter_left, panel_left});
panel_left.dock(dock_style::left);
panel_left.width(70);
splitter_left.dock(dock_style::left);
panel_right.dock(dock_style::right);
panel_right.width(70);
splitter_right.dock(dock_style::right);
panel_top.dock(dock_style::top);
panel_top.height(150);
splitter_top.dock(dock_style::top);
panel_fill.dock(dock_style::fill);
}
private:
panel panel_left;
splitter splitter_left;
panel panel_right;
splitter splitter_right;
panel panel_top;
splitter splitter_top;
panel panel_fill;
};
}
int main() {
application::run(examples::form1());
}
static const xtd::drawing::color light_yellow
Gets a system-defined color that has an ARGB value of 0xFFFFFFE0. This field is constant.
Definition: color.h:273
static const xtd::drawing::color light_blue
Gets a system-defined color that has an ARGB value of 0xFFADD8E6. This field is constant.
Definition: color.h:237
static const xtd::drawing::color light_green
Gets a system-defined color that has an ARGB value of 0xFF90EE90. This field is constant.
Definition: color.h:252
static const xtd::drawing::color light_pink
Gets a system-defined color that has an ARGB value of 0xFFFFB6C1. This field is constant.
Definition: color.h:255
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition: bitmap.h:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17