資源描述:
《經(jīng)典的菜單添加》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫(kù)。
1、以一個(gè)例子的方式介紹如何添加一個(gè)菜單,例子如下:在主菜單的“設(shè)置”菜單下增加一個(gè)“我的設(shè)定”子菜單,“我的設(shè)定”下有兩個(gè)子菜單:“我的設(shè)定1”和“我的設(shè)定2”,打開這兩個(gè)菜單,分別顯示一幅動(dòng)畫。步驟如下:1.在..plutommimmiSettingSettingInc目錄下的SettingDefs.h文件中增加如下內(nèi)容:a.enumSTR_SETTING_LIST的最后增加三個(gè)字符串ID的聲明:STR_MY_SETTING,STR_MY_SETTING1,STR_MY_SETTING2,b.enumSCR_SETTING
2、_LIST的最后增加三個(gè)ScreenID的聲明:SCR_MY_SETTING,SCR_MY_SETTING1,SCR_MY_SETTING2,c.enumIMG_SETTING_LIST的最后增加一個(gè)ImageID的聲明:IMG_MY_SETTING,2.3.4.d.在..plutommimmiInc目錄下GlobalMenuItems.h文件中enumGLOBALMENUITEMSID的最后增加三個(gè)菜單ID的聲明:(有的是在本AP或模塊的*Defs.h中聲明)MENU_MY_SETTING,MENU_MY_SETTING1
3、,MENU_MY_SETTING2,2.在..plutommiCustomerCustResourcePLUTO_MMI目錄下的Ref_list.txt中添加三個(gè)字符串:STR_MY_SETTINGUndefined10MySettingMySetting發(fā)送短信發(fā)送短信STR_MY_SETTING1Undefined10MySetting1MySetting1我的設(shè)定1我的設(shè)定1STR_MY_SETTING2Undefined10MySetting2MySetting2我的設(shè)定2我的設(shè)定2(用excel打開文件,編輯完后
4、不要保存,直接復(fù)制增加或修改部分,粘貼到Ref_list.txt里)???????3.在..plutommiCustomerCustResourcePLUTO_MMIRes_MMI目錄下的Res_Setting.c增加如下資源:ADD_APPLICATION_MENUITEM((MENU_MY_SETTING,MAIN_MENU_SETTINGS_MENUID,?????????????????????????2,MENU_MY_SETTING1,?????????????????????????MENU_MY_SETT
5、ING2,?????????????????????????SHOW,MOVEABLEWITHINPARENT,?????????????????????????DISP_LIST,STR_MY_SETTING,0));ADD_APPLICATION_MENUITEM((MENU_MY_SETTING1,MENU_MY_SETTING,0,SHOW,????????????????????????MOVEABLEWITHINPARENT,DISP_LIST,STR_MY_SETTING1,0));ADD_APPLICATION_M
6、ENUITEM((MENU_MY_SETTING2,MENU_MY_SETTING,0,SHOW,????????????????????????MOVEABLEWITHINPARENT,DISP_LIST,STR_MY_SETTING2,0));ADD_APPLICATION_IMAGE2(IMG_MY_SETTING,CUST_IMG_PATH"\\MainLCD\\SubMenu???????????????????????\Settings\\MY_SETTING.GIF","MySetting.");A
7、DD_APPLICATION_STRING2(STR_MY_SETTING,"MySetting","MySetting");ADD_APPLICATION_STRING2(STR_MY_SETTING1,"MySetting1","MySetting1");ADD_APPLICATION_STRING2(STR_MY_SETTING2,"MySetting2","MySetting2");??4.在..plutommiCustomerCustResourcePLUTO_MMIRes_MMI目錄下的Res_MainMen
8、u.c中修改如下:ADD_APPLICATION_MENUITEM((MAIN_MENU_SETTINGS_MENUID,IDLE_SCREEN_????????????????????????MENU_ID,5,?????????????????