diff -r 2dda1ad6dc7a -r 012418e7dc90 application/main.c --- a/application/main.c Wed Apr 02 20:31:47 2014 +0200 +++ b/application/main.c Thu Apr 03 11:12:22 2014 +0200 @@ -76,6 +76,7 @@ if(event->obj->document != wdata->doc1) { ui_set_document(event->obj, wdata->doc1); } + ui_unset_group(event->obj->ctx, 1); } void action_doc2(UiEvent *event, void *data) { @@ -83,6 +84,7 @@ if(event->obj->document != wdata->doc2) { ui_set_document(event->obj, wdata->doc2); } + ui_set_group(event->obj->ctx, 1); } void action_undo(UiEvent *event, void *data) { @@ -116,9 +118,11 @@ ui_menuitem_st(UI_STOCK_OPEN, action_open, NULL); ui_menuitem_stgr(UI_STOCK_SAVE, action_save, NULL, 1, -1); ui_menuseparator(); + ui_menuitem("Dokument 1", action_doc1, NULL); ui_menuitem("Dokument 2", action_doc2, NULL); - void ui_menuseparator(); + + ui_menuseparator(); ui_checkitem_nv("Check", "check1"); //ui_checkitem("Check", action_open, NULL);