diff -r c9b8b9e0cfe8 -r d781436e2490 ui/wpf/UIwrapper/UIwrapper/container.cpp --- a/ui/wpf/UIwrapper/UIwrapper/container.cpp Mon Jan 23 10:50:22 2017 +0100 +++ b/ui/wpf/UIwrapper/UIwrapper/container.cpp Mon Jan 23 12:17:34 2017 +0100 @@ -7,15 +7,15 @@ #using "UIcore.dll" -UI_EXPORT void* __stdcall UIvbox(gcroot *parent) { - UI::BoxContainer ^vbox = gcnew UI::BoxContainer(*parent, UI::BoxOrientation::VERTICAL); +UI_EXPORT void* __stdcall UIvbox(gcroot *parent, int margin, int spacing) { + UI::BoxContainer ^vbox = gcnew UI::BoxContainer(*parent, UI::BoxOrientation::VERTICAL, margin, spacing); gcroot *container = new gcroot(); *container = vbox; return container; } -UI_EXPORT void* __stdcall UIhbox(gcroot *parent) { - UI::BoxContainer ^hbox = gcnew UI::BoxContainer(*parent, UI::BoxOrientation::HORIZONTAL); +UI_EXPORT void* __stdcall UIhbox(gcroot *parent, int margin, int spacing) { + UI::BoxContainer ^hbox = gcnew UI::BoxContainer(*parent, UI::BoxOrientation::HORIZONTAL, margin, spacing); gcroot *container = new gcroot(); *container = hbox; return container; @@ -28,6 +28,25 @@ return container; } +UI_EXPORT void* __stdcall UIscrolledwindow(gcroot *parent) { + UI::ScrollViewerContainer ^scrollviewer = gcnew UI::ScrollViewerContainer(*parent); + gcroot *container = new gcroot(); + *container = scrollviewer; + return container; +} + +UI_EXPORT void* __stdcall UItabview(gcroot *parent) { + UI::TabViewContainer ^tabview = gcnew UI::TabViewContainer(*parent); + gcroot *container = new gcroot(); + *container = tabview; + return container; +} + +UI_EXPORT void __stdcall UItab(gcroot *container, char *label) { + UI::Container ^ct = *container; + ct->Layout->Label = gcnew String(label); +} + /* ------------------- layout functions ------------------- */