ui/winui/window.cpp

branch
newapi
changeset 190
70fd1b24e395
parent 187
24ce2c326d85
child 195
0f2e69873875
equal deleted inserted replaced
189:4daddc326877 190:70fd1b24e395
81 window.Closed([obj](IInspectable const& sender, WindowEventArgs) { 81 window.Closed([obj](IInspectable const& sender, WindowEventArgs) {
82 // TODO: destroy UiObject*, context, ... 82 // TODO: destroy UiObject*, context, ...
83 delete obj->wobj; 83 delete obj->wobj;
84 }); 84 });
85 85
86 obj->container = new UiBoxContainer(grid, UI_CONTAINER_VBOX); 86 obj->container = new UiBoxContainer(grid, UI_CONTAINER_VBOX, 0, 0);
87 87
88 if (uic_get_menu_list()) { 88 if (uic_get_menu_list()) {
89 // create/add menubar 89 // create/add menubar
90 MenuBar mb = ui_create_menubar(obj); 90 MenuBar mb = ui_create_menubar(obj);
91 mb.VerticalAlignment(VerticalAlignment::Top); 91 mb.VerticalAlignment(VerticalAlignment::Top);

mercurial