if (context == MENUID){ keymenu = MSG_U(M_MODULEN,"MENUTITLE"); dia.new_menuitem ("MODULEN","",keymenu); } if (context == MENUID){ if (key == keymenu){ CONTEXT_LOCK l("MODULEN"); if (l.isok()){ // ### Place the call to the main menu of this module here } } } return 0;