application/application.c

changeset 2
ea89bbb0c4c8
parent 0
804d8803eade
--- a/application/application.c	Wed Dec 09 11:33:00 2020 +0100
+++ b/application/application.c	Thu Dec 10 13:43:25 2020 +0100
@@ -6,25 +6,12 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "menu.h"
+#include "window.h"
+
 void application_startup(UiEvent *event, void *data) {
-    UiObject *win = ui_window("Note", NULL);
+    menu_init(); // init global menu/toolbar
     
-    UI_VBOX(win) {
-        ui_button(win, "Line1", NULL, NULL);
-        ui_button(win, "Line2", NULL, NULL);
-        UI_HBOX(win) {
-            ui_button(win, "Line3_1", NULL, NULL);
-            ui_button(win, "Line3_2", NULL, NULL);
-            ui_button(win, "Line3_3", NULL, NULL);
-        }
-        UI_CTN(win, ui_hbox_sp(win, 10, 10)) {
-            ui_label(win, "1");
-            ui_label(win, "2");
-            ui_layout_fill(win, TRUE);
-            ui_textfield(win, NULL);
-        }
-        ui_button(win, "Line4", NULL, NULL);
-    }
-    
+    UiObject *win = window_create();    
     ui_show(win);
 }

mercurial