application/main.c

changeset 522
bb0d05f45046
parent 520
ea1bba55de44
child 525
878df45e6441
--- a/application/main.c	Wed Mar 26 22:00:31 2025 +0100
+++ b/application/main.c	Wed Mar 26 22:09:05 2025 +0100
@@ -775,9 +775,13 @@
 
 void application_startup(UiEvent *event, void *data) {
     UiObject *obj = ui_window("My Window", NULL);
-    ui_button(obj, .label = "Button 1");
-    ui_button(obj, .label = "Button 2");
-    ui_button(obj, .label = "Button 3");
+    ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10) {
+        ui_button(obj, .label = "Button 1");
+        ui_button(obj, .label = "Button 2");
+        ui_newline(obj);
+        
+        ui_button(obj, .label = "Button 3", .colspan = 2);
+    }
     ui_show(obj);
 }
 

mercurial