diff -r 3d801e8dda3a -r 3e021c5f18a0 application/main.c --- a/application/main.c Sun Jan 11 15:29:38 2015 +0100 +++ b/application/main.c Sun Jan 11 16:33:28 2015 +0100 @@ -84,6 +84,10 @@ //ui_select_tab(tabview, 1); } +void action_check(UiEvent *event, void *data) { + printf("check: %d\n", event->intval); +} + void action_test(UiEvent *event, void *data) { //ui_select_tab(tabview, 0); } @@ -98,6 +102,7 @@ ui_menu("File"); ui_menuitem_st(UI_STOCK_CLOSE, action_close, NULL); + ui_checkitem("Test", action_check, NULL); //ui_checkitem("Check", action_button, NULL); ui_toolitem_st("button", UI_STOCK_GO_BACK, action_button, NULL); @@ -106,17 +111,6 @@ printf("create window\n"); UiObject *window = ui_window("Mod0", NULL); - ui_grid(window); - - ui_label(window, "Name"); - ui_textfield(window, &name); - ui_newline(window); - - ui_label(window, "Email"); - ui_textfield(window, &mail); - - - ui_end(window); ui_show(window);