application/main.c

branch
newapi
changeset 331
cdad8b7e83db
parent 328
059cba080ab4
child 332
7e7c05af8f3a
--- a/application/main.c	Tue Oct 08 22:19:24 2024 +0200
+++ b/application/main.c	Tue Oct 08 22:53:27 2024 +0200
@@ -134,7 +134,7 @@
     MyDocument *doc = create_doc();
     ui_attach_document(obj->ctx, doc);
     
-    ui_tabview(obj, .spacing=10, .margin=10) {
+    ui_tabview(obj, .spacing=10, .margin=10, .tabview = UI_TABVIEW_NAVIGATION_SIDE) {
         ui_tab(obj, "Tab 1") {
             ui_vbox(obj, .fill = UI_OFF, .margin = 15, .spacing = 15) {
                 ui_button(obj, .label = "Test Button", .icon = "application-x-generic", .onclick = action_button);
@@ -179,6 +179,9 @@
                 }
             }
         }
+        ui_tab(obj, "Tab 2") {
+            ui_button(obj, .label = "Button");
+        }
     }
     
     /*

mercurial