#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/panel>
#include <xtd/forms/splitter>
namespace splitter_example {
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.back_color(drawing::color::light_blue);
panel_left.width(70);
splitter_left.dock(dock_style::left);
panel_right.dock(dock_style::right);
panel_right.back_color(drawing::color::light_yellow);
panel_right.width(70);
splitter_right.dock(dock_style::right);
panel_top.dock(dock_style::top);
panel_top.back_color(drawing::color::light_pink);
panel_top.height(150);
splitter_top.dock(dock_style::top);
panel_fill.dock(dock_style::fill);
panel_fill.back_color(drawing::color::light_green);
}
private:
};
}
auto main() -> int {
application::run(splitter_example::form1 {});
}
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.h:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10