63 } |
63 } |
64 |
64 |
65 void application_startup(UiEvent *event, void *data) { |
65 void application_startup(UiEvent *event, void *data) { |
66 UiObject *obj = ui_window("Test", NULL); |
66 UiObject *obj = ui_window("Test", NULL); |
67 |
67 |
68 ui_grid_sp(obj, 10, 10, 10); |
68 ui_tabview(obj); |
69 |
69 |
70 ui_label(obj, "Test2"); |
70 ui_tab(obj, "Tab 1"); |
71 ui_layout_hexpand(obj, TRUE); |
71 ui_textarea(obj, NULL); |
72 ui_button(obj, "OK", NULL, NULL); |
|
73 ui_button(obj, "------------------------", NULL, NULL); |
|
74 ui_newline(obj); |
|
75 |
72 |
76 ui_label(obj, "Test2"); |
73 ui_tab(obj, "Tab 2"); |
77 ui_layout_hexpand(obj, TRUE); |
74 ui_textarea(obj, NULL); |
78 ui_layout_vexpand(obj, TRUE); |
|
79 ui_layout_gridwidth(obj, 2); |
|
80 |
|
81 ui_drawingarea(obj, draw, NULL); |
|
82 |
|
83 ui_newline(obj); |
|
84 |
75 |
85 ui_end(obj); |
76 ui_end(obj); |
86 |
77 |
87 ui_show(obj); |
78 ui_show(obj); |
88 } |
79 } |