application/main.c

branch
newapi
changeset 424
51e856688fba
parent 422
c1354a29a7e9
child 426
3eb26df703bf
--- a/application/main.c	Tue Dec 31 16:21:57 2024 +0100
+++ b/application/main.c	Tue Dec 31 17:22:16 2024 +0100
@@ -564,7 +564,39 @@
     wdata->path = ui_string_new(obj->ctx, NULL);
     obj->window = wdata;
     
-    ui_button(obj, .label = "Add Item", .onclick = action_button);
+    /*
+    ui_button(obj, .label = "Add Item", .onclick = action_button, .name = "mybutton1");
+    ui_button(obj, .label = "Test2", .name = "mybutton2");
+    ui_button(obj, .label = "Test3", .name = "mybutton3");
+    ui_hbox0(obj) {
+        ui_button(obj, .label = "hbutton1");
+        ui_button(obj, .label = "hbutton2");
+        ui_button(obj, .label = "hbutton3", .fill = UI_ON);
+        ui_button(obj, .label = "hbutton4");
+        ui_button(obj, .label = "hbutton5");
+        
+    }
+    ui_button(obj, .label = "Test4", .name = "mybutton4", .fill = UI_ON);
+    ui_button(obj, .label = "end");
+    */
+    
+    ui_grid(obj, .columnspacing = 10, .rowspacing = 20, .fill = UI_ON) {
+        ui_button(obj, .label = "Add Item", .onclick = action_button, .name = "mybutton1");
+        ui_newline(obj);
+        ui_button(obj, .label = "Line 2 B1");
+        ui_button(obj, .label = "Line 2 B2");
+        ui_button(obj, .label = "Line 2 B3");
+        ui_newline(obj);
+        ui_button(obj, .label = "Line 3", .colspan = 3, .hfill = TRUE, .vexpand = TRUE, .vfill = TRUE);
+        ui_newline(obj);
+        ui_button(obj, .label = "Line 4 B1");
+        ui_button(obj, .label = "Line 4 B2");
+        ui_button(obj, .label = "Line 4 B3");
+        ui_button(obj, .label = "Line 4 B4", .hexpand = TRUE, .hfill = TRUE);
+        ui_button(obj, .label = "Line EOL");
+        ui_newline(obj);
+        ui_button(obj, .colspan = 5, .hfill = TRUE);
+    }
     
     ui_show(obj);
 }

mercurial