266 ui_list_append(menu_list, "menu list item 2"); |
266 ui_list_append(menu_list, "menu list item 2"); |
267 ui_list_append(menu_list, "menu list item 3"); |
267 ui_list_append(menu_list, "menu list item 3"); |
268 |
268 |
269 |
269 |
270 |
270 |
271 UiObject *obj = ui_window("Test", NULL); |
271 UiObject *obj = ui_sidebar_window("Test", NULL); |
|
272 |
|
273 ui_sidebar(obj, .margin = 8, .spacing = 8) { |
|
274 ui_button(obj, .label = "Button 1", .style_class = "flat"); |
|
275 ui_button(obj, .label = "Button 2", .style_class = "flat"); |
|
276 ui_button(obj, .label = "Button 3", .style_class = "flat"); |
|
277 ui_button(obj, .label = "Button 4", .style_class = "flat"); |
|
278 ui_button(obj, .label = "Button 5", .style_class = "flat"); |
|
279 } |
272 |
280 |
273 MyDocument *doc = create_doc(); |
281 MyDocument *doc = create_doc(); |
274 ui_attach_document(obj->ctx, doc); |
282 ui_attach_document(obj->ctx, doc); |
275 |
283 |
276 ui_tabview(obj, .spacing=10, .margin=10, .tabview = UI_TABVIEW_NAVIGATION_SIDE, .varname="tabview") { |
284 ui_tabview(obj, .spacing=10, .margin=10, .tabview = UI_TABVIEW_NAVIGATION_SIDE, .varname="tabview") { |