--- a/application/main.c Wed Jan 07 20:11:36 2015 +0100 +++ b/application/main.c Fri Jan 09 14:33:40 2015 +0100 @@ -80,11 +80,11 @@ printf("{%s}\n", s); //printf("name: {%s}\n", ui_getval(name)); //printf("mail: {%s}\n", ui_getval(mail)); - //ui_select_tab(tabview, 0); + ui_select_tab(tabview, 1); } void action_test(UiEvent *event, void *data) { - //ui_select_tab(tabview, 1); + ui_select_tab(tabview, 0); } int main(int argc, char** argv) { @@ -105,7 +105,9 @@ printf("create window\n"); UiObject *window = ui_window("Mod0", NULL); - ui_layout_fill(window, FALSE); + tabview = ui_tabview(window); + + ui_tab(window, "1"); ui_grid(window); ui_button(window, "Test1________________", action_button, NULL); ui_button(window, "Test2", action_button, NULL); @@ -113,6 +115,13 @@ ui_button(window, "Test1", action_button, NULL); ui_button(window, "Test2", action_button, NULL); ui_end(window); + ui_end(window); + + ui_tab(window, "2"); + ui_textarea_nv(window, "text"); + ui_button(window, "Zurück", action_test, NULL); + + ui_end(window); ui_show(window); ui_main();