CODE: /*********************** * 结构体区 * ***********************/ //----------------------以下为例子,请根据实际情况修改--------------------------- struct MenuItem TimeMenu[4]; struct MenuItem FlashMenu[5]; struct MenuItem VoiceMenu[5]; struct MenuItem RobotMenu[5]; struct MenuItem MainMenu[5];
struct MenuItem TimeMenu[4]= { //MenuCount DisplayString Subs ChildrenMenus ParentMenus {4, "1.Time Set", TimeSet, Null, MainMenu}, {4, "2.Date Set", DateSet, Null, MainMenu}, {4, "3.AlertSet", AlertSet, Null, MainMenu}, {4, "4.Back", NullSubs, MainMenu, MainMenu}, };
struct MenuItem FlashMenu[5]= { //MenuCount DisplayString Subs ChildrenMenus ParentMenus {5, "1.Flash Record", NullSubs, Null, MainMenu}, {5, "2.Play", NullSubs, Null, MainMenu}, {5, "3.Pause", NullSubs, Null, MainMenu}, {5, "4.Flash Delete", NullSubs, Null, MainMenu}, {5, "5.Back", NullSubs, MainMenu, MainMenu}, };
struct MenuItem VoiceMenu[5]= { //MenuCount DisplayString Subs ChildrenMenus ParentMenus {5, "1.Voice Record" , NullSubs, Null, MainMenu}, {5, "2.Play", NullSubs, Null, MainMenu}, {5, "3.Pause", NullSubs, Null, MainMenu}, {5, "4.Voice Delete", NullSubs, Null, MainMenu}, {5, "5.Back", NullSubs, MainMenu, MainMenu}, };
struct MenuItem RobotMenu[5]= { //MenuCount DisplayString Subs ChildrenMenus ParentMenus {5, "1.Turn Left", NullSubs, Null, MainMenu}, {5, "2.Turn Right", NullSubs, Null, MainMenu}, {5, "3.Go Ahead", NullSubs, Null, MainMenu}, {5, "4.Go Back", NullSubs, Null, MainMenu}, {5, "5.Back", NullSubs, MainMenu, MainMenu}, };
struct MenuItem MainMenu[5]= { //MenuCount DisplayString Subs ChildrenMenus ParentMenus {5, "1.Time Set" , NullSubs, TimeMenu, Null}, {5, "2.Voice Center", NullSubs, VoiceMenu, Null}, {5, "3.Robot Control", NullSubs, RobotMenu, Null}, {5, "4.Flash Option", NullSubs, FlashMenu, Null}, {5, "5.Back", NullSubs, MainMenu, MainMenu}, }; //------------------------------------------------------------------------------
|