--- a/application/main.c Sun Dec 15 11:59:30 2024 +0100 +++ b/application/main.c Sun Dec 15 22:13:05 2024 +0100 @@ -551,13 +551,19 @@ ui_show(obj); } +void action_test(UiEvent *event, void *data) { + printf("action test\n"); +} + int main(int argc, char** argv) { ui_init("app1", argc, argv); ui_onstartup(application_startup, NULL); // menu ui_menu("File") { - ui_menuitem(.label = "Test"); + ui_menuitem(.label = "Test 1", .onclick = action_test); + ui_menuitem(.label = "Test 2", .onclick = action_test); + ui_menuitem(.label = "Test 3", .onclick = action_test); } ui_main();