application/application.c

changeset 2
ea89bbb0c4c8
parent 0
804d8803eade
equal deleted inserted replaced
1:fcacc15a2ef2 2:ea89bbb0c4c8
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "menu.h"
10 #include "window.h"
11
9 void application_startup(UiEvent *event, void *data) { 12 void application_startup(UiEvent *event, void *data) {
10 UiObject *win = ui_window("Note", NULL); 13 menu_init(); // init global menu/toolbar
11 14
12 UI_VBOX(win) { 15 UiObject *win = window_create();
13 ui_button(win, "Line1", NULL, NULL);
14 ui_button(win, "Line2", NULL, NULL);
15 UI_HBOX(win) {
16 ui_button(win, "Line3_1", NULL, NULL);
17 ui_button(win, "Line3_2", NULL, NULL);
18 ui_button(win, "Line3_3", NULL, NULL);
19 }
20 UI_CTN(win, ui_hbox_sp(win, 10, 10)) {
21 ui_label(win, "1");
22 ui_label(win, "2");
23 ui_layout_fill(win, TRUE);
24 ui_textfield(win, NULL);
25 }
26 ui_button(win, "Line4", NULL, NULL);
27 }
28
29 ui_show(win); 16 ui_show(win);
30 } 17 }

mercurial