|
1 |
|
2 |
|
3 #include "application.h" |
|
4 |
|
5 #include <stdio.h> |
|
6 #include <stdlib.h> |
|
7 #include <string.h> |
|
8 |
|
9 void application_startup(UiEvent *event, void *data) { |
|
10 UiObject *win = ui_window("Note", NULL); |
|
11 |
|
12 UI_VBOX(win) { |
|
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); |
|
30 } |